diff options
author | Todd Parker <fg.todd@gmail.com> | 2008-12-30 21:33:00 +0000 |
---|---|---|
committer | Todd Parker <fg.todd@gmail.com> | 2008-12-30 21:33:00 +0000 |
commit | ee99ec9b8a897cbafcb072f9cf4b50c43739fbad (patch) | |
tree | 4ec3091a80bc8b9444ff7ceb223439aec169b36e /demos/slider/rangemax.html | |
parent | 25210e9cfdfd9591299a814d93a8cff9cf776856 (diff) | |
download | jquery-ui-ee99ec9b8a897cbafcb072f9cf4b50c43739fbad.tar.gz jquery-ui-ee99ec9b8a897cbafcb072f9cf4b50c43739fbad.zip |
Added feedback of the current slider value next to label.
Diffstat (limited to 'demos/slider/rangemax.html')
-rw-r--r-- | demos/slider/rangemax.html | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/demos/slider/rangemax.html b/demos/slider/rangemax.html index fb42cc54f..c87f36f22 100644 --- a/demos/slider/rangemax.html +++ b/demos/slider/rangemax.html @@ -13,16 +13,19 @@ range: "max", min:1, max:10, - value: 2 + value: 2, + slide: function(event, ui) { + $("#amount").val(ui.value); + } }); - }); + $("#amount").val($("#slider-range-max").slider("value")); }); </script> </head> <body> <div class="demo"> -<p>Minimum number of bedrooms:</p> +<p>Minimum number of bedrooms: <input type="text" id="amount" style="border:0; color:#f6931f; font-weight:bold;"/></p> <div id="slider-range-max"></div> </div><!-- End demo --> @@ -35,6 +38,7 @@ <pre> range: "max", </pre> +<p>This demo also shows how the current slider value can be used to populate a standard form input that can also be used for user feedback.</p> </div><!-- End demo-description --> |