It is often useful to compare event.target to this in order to determine if the event is being handled due to event bubbling.Syntaxevent.target ParameterDescription event Required. The event parameter comes from the event binding function
❮ jQuery Event Methods Example Stop the click event from bubbling to parent elements: $("span").click(function(event){ event.stopPropagation(); alert("The span element was clicked."); }); $("p").click(function(event){ alert("The p element was clicked."); ...