How to swap element on screen with JavaScript

前端 未结 5 1532
你的背包
你的背包 2021-01-21 08:22

I have multiple \'li\' elements:

$(\".my_lis\")

with on the page I want to shuffle them around with JavaScript (I\'m using JQuery). How to do t

5条回答
  •  说谎
    说谎 (楼主)
    2021-01-21 09:20

    You can check out the jQuery Sortable plugin which has great examples and code walkthroughs/samples here:

    http://jqueryui.com/demos/sortable/

提交回复
热议问题