Quick Answer
Drag-and-drop: jQuery UI Draggable and Droppable handle this with one line: $(".drag-item").draggable(); $(".drop-zone").droppable({drop: function(e, ui) { ui.draggable.appendTo($(this)); }}). HTML5 native drag-and-drop is an alternative. jQuery UI supports sortable lists: $(".sortable-list").sortable() for re-ordering by drag.
Answer
Use jQuery UI or custom mouse events. Track mousedown, mousemove, mouseup. Update element position dynamically. Useful for sortable lists, dashboards, or widgets.
S
SugharaIQ Editorial Team
Verified Answer
This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.