jQuery onclick not firing on dynamically inserted HTML elements
$(document).on('click','.classname',function(){alert('clicked');});****AnotherMethod****// where #wrapper is a static element in which you add the dynamic links.$('#wrapper').on('click','a',function(){alert('clicked');});