jquery拖动排序功能

<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <script src="jquery.js"></script>
  <script src="jquery-ui.js"></script>
  <script>
  $(function() {
    $( "#sortable" ).sortable();
    $( "#sortable" ).disableSelection();
  });
  </script>
</head>
<body>
<ul id="sortable">
  <li>1</li>
  <li>2</li>
  <li>3</li>
  <li>4</li>
  <li>5</li>
  <li>6</li>
  <li>7</li>
</ul>
</body>
</html>

 

posted @ 2021-08-09 21:16  乱炖er  阅读(111)  评论(0编辑  收藏  举报