Buttons In Clickable Div In Jquery
I have whole div you can click on which toggles the main part of that div. The problem is I also have clickable button in that div and when I click on it it does what it should but
Solution 1:
Use event.stopPropagation()
on button click
It will stop the propagatotin to the parent
$("#buttonid").click(function(e){
e.stopPropagation()
});
Post a Comment for "Buttons In Clickable Div In Jquery"