Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-26-2011, 04:03 PM   PM User | #1
AmmarIdris88
New Coder

 
Join Date: Nov 2011
Posts: 21
Thanks: 12
Thanked 0 Times in 0 Posts
AmmarIdris88 is an unknown quantity at this point
bind .click() to container excluding child elements

Hi,

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?

Thank you.

Edit: Sorry found the solution, event stopPropagation();

Last edited by AmmarIdris88; 11-26-2011 at 04:43 PM..
AmmarIdris88 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:46 AM.


Advertisement
Log in to turn off these ads.