I have a page that has functions bind to both left and right mouse button, ie. draggable/sortable on left mouse button, and custom context menu on right mouse button.
Wh
Try this:
$('#element').mousedown(function(event) { if(event.which == 1) { $('#element').draggable(); $('#element').sortable(); } else if (event.which == 3) { // context menu functions } });