Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

sortable jquery

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>jQuery UI Sortable - Default functionality</title>
  <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
  <link rel="stylesheet" href="/resources/demos/style.css">
  <style>
  #sortable { list-style-type: none; margin: 0; padding: 0; width: 60%; }
  #sortable li { margin: 0 3px 3px 3px; padding: 0.4em; padding-left: 1.5em; font-size: 1.4em; height: 18px; }
  #sortable li span { position: absolute; margin-left: -1.3em; }
  </style>
  <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  <script>
  $( function() {
    $( "#sortable" ).sortable();
    $( "#sortable" ).disableSelection();
  } );
  </script>
</head>
<body>
 
<ul id="sortable">
  <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 1</li>
  <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 2</li>
  <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 3</li>
  <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 4</li>
  <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 5</li>
  <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 6</li>
  <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 7</li>
</ul>
 
 
</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Javascript :: event after div created 
Javascript :: jquery toastr 
Javascript :: node localstorage 
Javascript :: jquery ajax send custom data after serialize 
Javascript :: The removeChild() Method 
Javascript :: start live server react js 
Javascript :: insert isValidPhoneNumber in react hook form 
Javascript :: mongoose rename collection 
Javascript :: how to deploy firebase angular 10 
Javascript :: arithmetic operators in javascript 
Javascript :: to show which tab is active in VueJS 
Javascript :: working of timers in javascript 
Javascript :: arrow function javascript 
Javascript :: useRoutes 
Javascript :: check for palindromes 
Javascript :: javascript sort 
Javascript :: javaScript new Set() Method 
Javascript :: Make Floating label TextInput in react native 
Javascript :: react-native make android apk 
Javascript :: react receiving socket muitple times 
Javascript :: shuffle array 
Javascript :: react.lazy 
Javascript :: document.getanimation 
Javascript :: javascript copy object 
Javascript :: js get path from url 
Javascript :: switch window 
Javascript :: mongodb findoneandupdate return new document 
Javascript :: Warning: Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state. 
Javascript :: react social login buttons 
Javascript :: javascript find unique values in array of objects 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =