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">
15 $( "#slider-range" ).slider({
20 slide: function( event, ui ) {
21 $( "#amount" ).val( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] );
24 $( "#amount" ).val( "$" + $( "#slider-range" ).slider( "values", 0 ) +
25 " - $" + $( "#slider-range" ).slider( "values", 1 ) );
32 <label for="amount">Price range:</label>
33 <input type="text" id="amount" style="border:0; color:#f6931f; font-weight:bold;" />
36 <div id="slider-range"></div>
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>