[Solved] How to drag an image onto a div in javascript? [closed]


HTML5 has it’s own drop event. You can use that event to process the file like $('element').on('drop',someFunction);. Check this jsFiddle out to get a proper idea of how this works. You can use that to your necessities by following how it works.

Disclaimer: The code is not mine.
More on the drop event: MDN, W3S

0

solved How to drag an image onto a div in javascript? [closed]