1 | <!doctype html>
|
---|
2 | <html lang="en">
|
---|
3 | <head>
|
---|
4 | <title>jQuery UI Selectable - Default functionality</title>
|
---|
5 | <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
|
---|
6 | <script type="text/javascript" src="../../jquery-1.4.1.js"></script>
|
---|
7 | <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
|
---|
8 | <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
|
---|
9 | <script type="text/javascript" src="../../ui/jquery.ui.mouse.js"></script>
|
---|
10 | <script type="text/javascript" src="../../ui/jquery.ui.selectable.js"></script>
|
---|
11 | <link type="text/css" href="../demos.css" rel="stylesheet" />
|
---|
12 |
|
---|
13 | <style type="text/css">
|
---|
14 | #feedback { font-size: 1.4em; }
|
---|
15 | #selectable .ui-selecting { background: #FECA40; }
|
---|
16 | #selectable .ui-selected { background: #F39814; color: white; }
|
---|
17 | #selectable { list-style-type: none; margin: 0; padding: 0; width: 60%; }
|
---|
18 | #selectable li { margin: 3px; padding: 0.4em; font-size: 1.4em; height: 18px; }
|
---|
19 | </style>
|
---|
20 | <script type="text/javascript">
|
---|
21 | $(function() {
|
---|
22 | $("#selectable").selectable();
|
---|
23 | });
|
---|
24 | </script>
|
---|
25 | </head>
|
---|
26 | <body>
|
---|
27 | <div class="demo">
|
---|
28 |
|
---|
29 | <ol id="selectable">
|
---|
30 | <li class="ui-widget-content">Item 1</li>
|
---|
31 | <li class="ui-widget-content">Item 2</li>
|
---|
32 | <li class="ui-widget-content">Item 3</li>
|
---|
33 | <li class="ui-widget-content">Item 4</li>
|
---|
34 | <li class="ui-widget-content">Item 5</li>
|
---|
35 | <li class="ui-widget-content">Item 6</li>
|
---|
36 | <li class="ui-widget-content">Item 7</li>
|
---|
37 | </ol>
|
---|
38 |
|
---|
39 | </div><!-- End demo -->
|
---|
40 |
|
---|
41 | <div class="demo-description">
|
---|
42 |
|
---|
43 | <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>
|
---|
44 |
|
---|
45 | </div><!-- End demo-description -->
|
---|
46 | </body>
|
---|
47 | </html>
|
---|