I know that jQuery can programmatically fire events on DOM elements that listen for these events. For example, $el.click() click event on $el without physically clicking $el with the mouse.
Given the two DOM elements dom1 and dom2 , you can programmatically emulate drag-and-drop from dom1 to dom2 using jQuery (or vanilla JavaScript), where dom1 dragged and dom2 not available using jQuery UI.
Note. The reason I want to do this is to create automated user interface tests.
source share