Jquery drag-and-drop trash contents updated

I am using jquery UI drag-and-drop. Can I update the contents of a div while deleting a divgable div element?

Please see my sample code in jsFddle . For example, I want the contents of the trading div to be updated automatically (the contents could be written by PHP) upon deletion. What should I do?

Thanks in advance!

+3
source share
2 answers

Sorting contains several events that you can use.

, , update, , . div , ajax, .

0

...

            $( "#sortable" ).sortable({
        stop: function(event, ui) {
                //Do what you want to here after the element has been dropped.
            }
    });

, ?

0

Source: https://habr.com/ru/post/1783476/


All Articles