简体   繁体   中英

Using jQuery UI draggable, how can I use a callback function on hover over a droppable object?

I need to append text to a cloned helper object when it's dragged over a droppable object.

Is there a way to trigger a callback on hover over a droppable object?

If I understand correctly, you want something to happen when the draggable is over the droppable?

If so, just use the over event:

$('.iamdroppable').droppable({

over: function() {  
//do something here
},

});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM