How do you obtain the clicked mouse button using jQuery?
$(\'div\').bind(\'click\', function(){ alert(\'clicked\'); });
this is trigger
With jquery you can use event object type
jQuery(".element").on("click contextmenu", function(e){ if(e.type == "contextmenu") { alert("Right click"); } });