G
G
Gagatyn2016-08-30 22:33:45
WordPress
Gagatyn, 2016-08-30 22:33:45

How to drag and drop blocks into a container?

Hello, there is a list of divs, containers below, 4 pieces. How to drag the top relevant blocks into containers so that the blocks disappear and when it's over, a modal window comes out, like you are right by so many percent or "Hurrah! You are great." Move implemented using jquery ui. But I can not implement the removal of the block. What should I do, assign a number to each block, and when it gets into the container, write it down somewhere? Or with a switch? What to do? Tyk

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
semki096, 2016-06-23
@Oversec

kenwheeler.github.io/slick

A
Alex Glebov, 2016-08-30
@Gagatyn

In jquery ui, you can assign a handler function to the drag end event
in it, hide the element, count percentages, and so on.
look for Interaction Events Draggable
professorweb.ru/my/javascript/jquery/level4/4_12.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question