I have a draggable div , made dragable with jqueryUI draggable library. I have an onclick handler on the div, but when I drag the div it then fires the click handler, which I don't want. The drag stop happens before the click, so I tried this:
$("#div").draggable({
stop: function(e) {
e.originalEvent.stopPropagation();
}
});
but the onclick event still fires. Any ideas JavaScript gurus?
preventDefault()
?