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.
$('#test').droppable({ drop: function (e,ui) { // "ui.draggable" dragged element (as jquery object) ui.draggable.addclass('myclass') } });
Comments
Post a Comment