views:

4368

answers:

1

I have a set of elements that respond to mouseUp events, and inside of them are child elements that respond to mouseUp events as well (all via. jQuery). How do I make it so when a child's mouseUp event occurs from a user mouse click the child's parent's mouseUp event doesn't also occur in jQuery?

+13  A: 

You want event.stopPropagation()

Tyson
3 seconds ahead
rahul
Okay thanks. I'm just plowing through code here ATM so I'm getting lazy about looking stuff up in the docs. :P
Daddy Warbox
For that, you'll want Google.doSearch(…) :)
Tyson