How to prevent other events calling js function based on some function using jquery -
multiple selectors calling same jquery method on click event.
i've prevent further calls method other events based on condition verified first event call..
this disable event handlers elements after 1 of elements has been clicked
$("#parent").on("click",".elementtoclick",function(){ $('#parent').off(); // plus whatever else need });
Comments
Post a Comment