PluginProbe
RSVP and Event Management / 1.3.0
RSVP and Event Management v1.3.0
trunk 0.5.0 0.6.0 0.7.0 0.8.0 0.9.0 0.9.5 1.0.0 1.1.0 1.2.0 1.2.1 1.3.0 1.3.1 1.3.2 1.5.0 1.6.0 1.6.1 1.6.2 1.6.5 1.7.0 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 All 136 releases
rsvp / jquery-ui-1.7.2.custom / development-bundle / demos / droppable / default.html

default.html in RSVP and Event Management 1.3.0, at jquery-ui-1.7.2.custom/development-bundle/demos/droppable/default.html

47 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <!doctype html>
2 <html lang="en">
3 <head>
4 <title>jQuery UI Droppable - Default Demo</title>
5 <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
6 <script type="text/javascript" src="../../jquery-1.3.2.js"></script>
7 <script type="text/javascript" src="../../ui/ui.core.js"></script>
8 <script type="text/javascript" src="../../ui/ui.draggable.js"></script>
9 <script type="text/javascript" src="../../ui/ui.droppable.js"></script>
10 <link type="text/css" href="../demos.css" rel="stylesheet" />
11 <style type="text/css">
12 #draggable { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 10px 10px 10px 0; }
13 #droppable { width: 150px; height: 150px; padding: 0.5em; float: left; margin: 10px; }
14 </style>
15 <script type="text/javascript">
16 $(function() {
17 $("#draggable").draggable();
18 $("#droppable").droppable({
19 drop: function(event, ui) {
20 $(this).addClass('ui-state-highlight').find('p').html('Dropped!');
21 }
22 });
23
24 });
25 </script>
26 </head>
27 <body>
28 <div class="demo">
29
30 <div id="draggable" class="ui-widget-content">
31 <p>Drag me to my target</p>
32 </div>
33
34 <div id="droppable" class="ui-widget-header">
35 <p>Drop here</p>
36 </div>
37
38 </div><!-- End demo -->
39
40 <div class="demo-description">
41
42 <p>Enable any DOM element to be droppable, a target for draggable elements.</p>
43
44 </div><!-- End demo-description -->
45 </body>
46 </html>
47