Reputation: 1861
Is there a way to have an event triggered when you drag an item to a certain place, or drag it a certain amount?
For example, with a slider you can have an event happen when you drag the slider like this:
$( '.slider' ).slider( {
slide : function(){},
change : function(){}
});
is there anything like this with a draggable element using jquery ui?
Upvotes: 0
Views: 39
Reputation: 1861
Found out it is very simple:
$('#id').draggable({
drag: function(){
//code here
}
});
Upvotes: 0