Advertisement
ukamori

draggable elements

Jul 11th, 2022 (edited)
1,717
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!--- replace #text01 with the id of the element you want draggable --->
  2.  
  3. <script src="https://code.jquery.com/jquery-3.6.0.js"></script>
  4. <script src="https://code.jquery.com/ui/1.13.0/jquery-ui.js"></script>
  5. <script>
  6. $( function() {
  7. $( "#text01" ).draggable();
  8. } );
  9. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement