JQuery event propagation doesnt work on dynamically loaded elements
I have the following HTML structure
<div class='b1'>
<div class='b2'>
</div>
</div>
and
$(document).on("click",'.b1',function(e){ //...});
but the event handler runs twice when I click .b2. How can I make it run
only once for a click?
No comments:
Post a Comment