42
rated 0 times
[
43]
[
1]
/ answers: 1 / hits: 22412
/ 11 Years ago, sat, august 3, 2013, 12:00:00
I have a draggable <div>
with a click
event and without any event for drag,
but after I drag <div>
the click event is apply to <div>
.
How can prevent of click event after drag?
$(function(){
$('div').bind('click', function(){
$(this).toggleClass('orange');
});
$('div').draggable();
});
http://jsfiddle.net/prince4prodigy/aG72R/
More From » jquery