jquery - If there is a button in a link, when I click this button, how to avoid the link? -
if there button in link, when click button, how avoid link?
you can stop propagation (event bubbling) .stoppropagation()
, this:
$("a :button").click(function(e) { e.stoppropagation(); });
Comments
Post a Comment