$( "p" ).on({"click": function() { console.log( "clicked!" ); },"mouseover": function() { console.log( "hovered!" ); }});To look like this:$( "p" ).on({"click": fnOne(); },"mouseover": fnTwo(); }});function fnOne(){ alert("click"); } function fnTwo(){ alert("click"); } But it does not work. How can I make it work?What would be the right way to do this?