Skip to content

Instantly share code, notes, and snippets.

@rcorreia
rcorreia / drag_and_drop_helper.js
Last active Jun 9, 2021
drag_and_drop_helper.js
View drag_and_drop_helper.js
(function( $ ) {
$.fn.simulateDragDrop = function(options) {
return this.each(function() {
new $.simulateDragDrop(this, options);
});
};
$.simulateDragDrop = function(elem, options) {
this.options = options;
this.simulateEvent(elem, options);
};