Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>jQuery UI Draggable - Default functionality</title>
- <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
- <script src="//code.jquery.com/jquery-1.10.2.js"></script>
- <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
- <link rel="stylesheet" href="/resources/demos/style.css">
- <style>
- #draggable { width: 50px; height: 50px; padding: 0.5em; }
- #draggable1 { width: 50px; height: 50px; padding: 0.5em; }
- </style>
- <script>
- $(function() {
- $( "#draggable" ).draggable();
- });
- $(function() {
- $( "#draggable1" ).draggable();
- });
- </script>
- </head>
- <body>
- <div id="draggable" class="ui-widget-content">
- <p>Drag me</p>
- </div>
- <div id="draggable1" class="ui-widget-content">
- <p>Drag me</p>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement