1 <!DOCTYPE html> |
|
2 <html lang="en"> |
|
3 <head> |
|
4 <meta charset="UTF-8" /> |
|
5 <title>jQuery UI Selectable - Default functionality</title> |
|
6 <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" /> |
|
7 <script type="text/javascript" src="../../jquery-1.4.2.js"></script> |
|
8 <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script> |
|
9 <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script> |
|
10 <script type="text/javascript" src="../../ui/jquery.ui.mouse.js"></script> |
|
11 <script type="text/javascript" src="../../ui/jquery.ui.selectable.js"></script> |
|
12 <link type="text/css" href="../demos.css" rel="stylesheet" /> |
|
13 |
|
14 <style type="text/css"> |
|
15 #feedback { font-size: 1.4em; } |
|
16 #selectable .ui-selecting { background: #FECA40; } |
|
17 #selectable .ui-selected { background: #F39814; color: white; } |
|
18 #selectable { list-style-type: none; margin: 0; padding: 0; width: 60%; } |
|
19 #selectable li { margin: 3px; padding: 0.4em; font-size: 1.4em; height: 18px; } |
|
20 </style> |
|
21 <script type="text/javascript"> |
|
22 $(function() { |
|
23 $("#selectable").selectable(); |
|
24 }); |
|
25 </script> |
|
26 </head> |
|
27 <body> |
|
28 <div class="demo"> |
|
29 |
|
30 <ol id="selectable"> |
|
31 <li class="ui-widget-content">Item 1</li> |
|
32 <li class="ui-widget-content">Item 2</li> |
|
33 <li class="ui-widget-content">Item 3</li> |
|
34 <li class="ui-widget-content">Item 4</li> |
|
35 <li class="ui-widget-content">Item 5</li> |
|
36 <li class="ui-widget-content">Item 6</li> |
|
37 <li class="ui-widget-content">Item 7</li> |
|
38 </ol> |
|
39 |
|
40 </div><!-- End demo --> |
|
41 |
|
42 <div class="demo-description"> |
|
43 |
|
44 <p>Enable a DOM element (or group of elements) to be selectable. Draw a box with your cursor to select items. Hold down the Ctrl key to make multiple non-adjacent selections. </p> |
|
45 |
|
46 </div><!-- End demo-description --> |
|
47 </body> |
|
48 </html> |
|