I have a simple scenario: I have two div one inside another, I want when I click on the child div just child div invokes and when I click on parent the parent one invoke but in the example below as you can see when I click on child both are invoked.Here is my code :
$(document).ready(function(){
$("#t1").click(function(){alert("Parent")});
$("#t2").click(function(){alert("child")});
});
http://jsfiddle.net/hminaee/hv6dv/
can anyone help?