Is there a method to disable the dragging functionality within a draggable element?
$('#dragitem').draggable({
scroll : false,
drag: function(event, ui){
//check if condition is met
if(….){
//Stop dragging here.
}
}
});
I am looking for a solution to prevent dragging inside the drag function. Any assistance would be greatly appreciated. Thanks!