Bound jQuery range slider to input field -
i'm trying bound input field jquery slider range option. tried demo listed in jquery's website, changing select field input, not working. main idea handle search requests , whenever user edits input field reflect slider too. possible? here current code:
jquery(function($) { $( "#adv-slider-price-range" ).slider({ range: true, min: 0, max: 100000, values: [ 0, 100000 ], slide: function( event, ui ) { $( "#advc-amount-price" ).val( ui.values[ 0 ] + " , " + ui.values[ 1 ]); } }); $( "#advc-amount-price" ).val( $( "#adv-slider-price-range" ).slider( "values", 0 ) + " , " + $( "#adv-slider-price-range" ).slider( "values", 1 ) ); }); <input type="text" name="pricerange" id="advc-amount-price" /> <div id="adv-slider-price-range"></div>
Comments
Post a Comment