They seem to be doing the same thing... Is one modern and one old? Or are they supported by different browsers?
When I handle events myself (without framework) I
$("#but").click(function(event){ console.log("hello"); event.preventDefault(); }); $("#foo").click(function(){ alert("parent click event fired !"); });
button