In jquery UI drop effect, how can I find the being dragged element? -


in jquery ui drop effect,how can find being draged one?

$('#test').droppable({                 drop: function (e,ui) {                     //$(this) means drop-container                     //how can use "ui" parameter find being draged one?                      }                 }             });  

like ui.? thank you

ui.draggable element being dragged.

drop (event)
event triggered when accepted draggable dropped 'over' (within tolerance of) droppable. in callback, $(this) represents droppable draggable dropped on. ui.draggable represents draggable.

documentation

$('#test').droppable({     drop: function (e,ui) {         // "ui.draggable" dragged element (as jquery object)         ui.draggable.addclass('myclass')     } });  

Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -