Move list item to top of unordered list using jQuery

前端 未结 5 639
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-01 04:22

Lets say i have the following unordered list

  • Hank
  • Alice
5条回答
  •  眼角桃花
    2020-12-01 05:01

    i played around with the fiddle No Surprises has made, and extended the code for swapping two arbitrary sets of elements (the only restriction being they must directly follow each other).

    see here: http://jsfiddle.net/ZXYZ3/139/

提交回复
热议问题