function sum(){ alert(“hello”); } $(“div”).click(sum);
$(“div”).click(function(){ alert(“hello”); });