suppose have dynamic tag injected @ end of loading page, using jquery plugin. tag has class '.myclass' want bind event tried :
$(document).on( 'click', '.myclass', function(){console.log('yes');});
the problem that, no function triggered, when run code on console seems related events listened elsewhere. how can make code run correctly ?
find problem coming from. related jquery plugin icheck, customize eventlisteners (example, $('document').on('change', target,...) becomes $('document').on('ifchanged', target,...)), plugin captures events related checkbox.
Comments
Post a Comment