I have a set of div elements inside <a> tag with it's href.
The question is that there is a div inside of it with its own click event and I want that in case the div element trigger the click event, the <a> tag should not be triggered.
The function that manage the div click event try to stop propagation with no success.
if (!e) var e = window.event;
e.cancelBubble = true;
if (e.stopPropagation) e.stopPropagation();
What's wrong?
Aucun commentaire:
Enregistrer un commentaire