Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
11-26-2011, 05:03 PM #1
- Join Date
- Nov 2011
- Thanked 0 Times in 0 Posts
bind .click() to container excluding child elements
I have a container which has a .click() event handler bound to it. The problem is that the .click() function is also being called when I click on child elements within the container. How do I stop the click event from propagating up past child elements?
Edit: Sorry found the solution, event stopPropagation();
Last edited by AmmarIdris88; 11-26-2011 at 05:43 PM.