I have a problem with element which is both draggable and also has a click event.
$(\'.drag\').mousedown(function() { //... }); $(\'.class\').click(function
You should be able to do that by stopping the propagation on the mousedown event.
$('.drag').mousedown(function(event){ event.stopPropagation(); });
You may have to make sure that this event is attached before the click event though.