How to drag multiple divs using jQuery UI? Is it possible to accept an array of divs?
This sounds perfect for your needs: https://github.com/someshwara/MultiDraggable
Using: $(".className").multiDraggable({ group: $(.className)});
$(".className").multiDraggable({ group: $(.className)});
Drags a group of items together. A group can also be an array defining individual elements.
Like: $("#drag1").multiDraggable({ group: [$("#drag1"),$("#drag2") ]});
$("#drag1").multiDraggable({ group: [$("#drag1"),$("#drag2") ]});
$ ("divclass.") Dragable () ;.
Will do something with the class, "divclass" draggable
you make a div in each class, for example:
<div id="1st" class="go"> <div id="2nd" class="go"> <div id="3rd" class="go">
then
$('.go').draggable();
Source: https://habr.com/ru/post/1765578/More articles:What is the best way to store html data in mysql database? - phpInsert a PHP array into two MySQL tables - sqlWhich thread pool manager is recommended for Perl? - multithreadingGet GPS start / stop events using addGpsStatusListener - androidHow to protect a trunk from developers - version-controlPostgresql full-text search on the hero - ruby-on-railsVisual Studio Report Designer only shows HTML - htmlHow can I install `Thread :: Pool` from CPAN? - moduleHow can I monitor the status of the GPS adapter using the Android SDK? - androidHow to automatically insert the last menu item in the right corner? - cssAll Articles