I have a scenario where I have to bind click event to both outer and inner div, but there comes a problem where I click on the inner div it will fired 2 click event including outer and inner div binded event.
How do I get exact event fired for the inner div only?
Here I attached the jsfiddle demo:
You can prevent events from bubbling to the parent using the
.stopPropagationmethod, which does as its name suggests. Updated link: http://jsfiddle.net/EQpA2/