Parent - child event jquery
Posted
by
Tom Rider
on Stack Overflow
See other posts from Stack Overflow
or by Tom Rider
Published on 2012-06-22T09:10:18Z
Indexed on
2012/06/22
9:16 UTC
Read the original article
Hit count: 147
JavaScript
|jQuery
I have have a 2 div element. One is child and one is parent like :
<div id="p">
<div id="c">
</div>
</div>
The parent
div has 2 event attached click
and dblclick
and child div has 1 event attached click
. Now my problem is when i clicked on the child div
the parent div click event also executed. I tried e.stopPropagation();
but still same behavior. Help me ?
© Stack Overflow or respective owner