Handling custom events

I have pictures that I move into separate divs, specifically for each type of picture. How can I capture the moment when all the images are moved into their own divs and show the images of one div in the slideshow?

Answer 1, authority 100%

I think this article will help you http://javascript.ru/ui/draganddrop