/[projects]/misc/horsensspejder-web/jquery/jquery-ui-1.10.3/demos/slider/range.html
ViewVC logotype

Annotation of /misc/horsensspejder-web/jquery/jquery-ui-1.10.3/demos/slider/range.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2125 - (hide annotations) (download) (as text)
Wed Mar 12 19:30:05 2014 UTC (10 years, 3 months ago) by torben
File MIME type: text/html
File size: 1327 byte(s)
initial import
1 torben 2125 <!doctype html>
2     <html lang="en">
3     <head>
4     <meta charset="utf-8">
5     <title>jQuery UI Slider - Range slider</title>
6     <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
7     <script src="../../jquery-1.9.1.js"></script>
8     <script src="../../ui/jquery.ui.core.js"></script>
9     <script src="../../ui/jquery.ui.widget.js"></script>
10     <script src="../../ui/jquery.ui.mouse.js"></script>
11     <script src="../../ui/jquery.ui.slider.js"></script>
12     <link rel="stylesheet" href="../demos.css">
13     <script>
14     $(function() {
15     $( "#slider-range" ).slider({
16     range: true,
17     min: 0,
18     max: 500,
19     values: [ 75, 300 ],
20     slide: function( event, ui ) {
21     $( "#amount" ).val( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] );
22     }
23     });
24     $( "#amount" ).val( "$" + $( "#slider-range" ).slider( "values", 0 ) +
25     " - $" + $( "#slider-range" ).slider( "values", 1 ) );
26     });
27     </script>
28     </head>
29     <body>
30    
31     <p>
32     <label for="amount">Price range:</label>
33     <input type="text" id="amount" style="border:0; color:#f6931f; font-weight:bold;" />
34     </p>
35    
36     <div id="slider-range"></div>
37    
38     <div class="demo-description">
39     <p>Set the <code>range</code> option to true to capture a range of values with two drag handles. The space between the handles is filled with a different background color to indicate those values are selected.</p>
40     </div>
41     </body>
42     </html>

  ViewVC Help
Powered by ViewVC 1.1.20