1$("span").click(function(event){
2 event.stopPropagation();
3 alert("The span element was clicked.");
4});
5$("p").click(function(event){
6 alert("The p element was clicked.");
7});
8$("div").click(function(){
9 alert("The div element was clicked.");
10});