event.stoppropagation code example
Example 1: stop propagation event
$("span").click(function(event){
event.stopPropagation();
alert("The span element was clicked.");
});
$("p").click(function(event){
alert("The p element was clicked.");
});
$("div").click(function(){
alert("The div element was clicked.");
});
Example 2: js propagation stop
oi
func(e?)
{
if(e) e.stopPropagation();
}
Example 3: event.stoppropagation
event.stopPropagation();