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

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -