Stop Propagation On Live Elements
I'm having an issue with stopping event propagation. Imagine this scenario:
Solution 1:The problem is the event has to climb to the parent to find a handler for
One way to prevent the double event is also add
Solution 2:Maybe I'm wrong, but can't you use event delegation here?
It saves you the hassle with propagation. Here's a jsfiddle |
Post a Comment for "Stop Propagation On Live Elements"