Is there a way for the jQuery sortable list to show the placeholder where the starting element was when dragging one of them to sort?
i.e. when the user proceeds to move one of the LIs in my list, I want the outline of the rectangle to show where it is being dragged from.
Short version: you can use a sortable event handler startto open the source element and change its appearance as you like. For instance:.
start
$(listOfStuff).sortable({ start: function (e, ui) { ui.item.show().addClass('original-placeholder'); });
, , , , "-".
( ):
, , , .
, , , , li , n- .
, , , , DOM, , , css 3- , , , , , , , , , .
, , - , ( ), . , , DOM , ...
Source: https://habr.com/ru/post/1731585/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1731580/connect-multiple-jcr-repositories-to-one-database-and-keep-updated&usg=ALkJrhi19_qaiEFnnoDRlHsEOze4sHEy4QHow can I control public URLs using the java.net.URL class in a Java program? - javaMySQL Select Like - sqlSimple task scheduling inside a Rails application - ruby-on-railsTrojan debugging and analysis - analysisEdited-MySQL. Large MyISAM table (40 million records) with an index that is very slow and huge in size on disk - optimizationweb ERP in django, where do I start? - python.NET - Effective sorting of pairs by value - sortingUsing Postgres in a web application: transaction errors - pythonSources from two SVN repositories - svnAll Articles