How do you obtain the clicked mouse button using jQuery?
$(\'div\').bind(\'click\', function(){ alert(\'clicked\'); });
this is trigger
$.event.special.rightclick = { bindType: "contextmenu", delegateType: "contextmenu" }; $(document).on("rightclick", "div", function() { console.log("hello"); return false; });