Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Quick jQuery question: Stopping event propagation?

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?

like image 462
Daddy Warbox Avatar asked Jul 01 '09 04:07

Daddy Warbox


1 Answers

You want event.stopPropagation()

like image 137
Tyson Avatar answered Oct 26 '22 16:10

Tyson