I want to stop propagate event from parent div
to child div
in my html. Here a simple code what I\'m trying to do:
Instead of using e.stopPropagation, I suggest you to use unbind() method in the div This will allow to stop the propagation effect for the You can always create a new function and assign to the I hope that helps!$('.listed-category').unbind('click');
.listed-category
div. The method e.stopPropagation()
doesn't work because it just works with parent elements and not with child elements. .listed-category
div afterwards.. You can also check the documentation for the unbind()
method at this link: http://api.jquery.com/unbind/