Rectangle 27 0

php Setting Range for jQuery UI Sliders Based on Results of SQL Query?


//getter
var range = $( ".selector" ).slider( "option", "range" );
//setter
$( ".selector" ).slider( "option", "range", 'min' );

//getter
var values = $( ".selector" ).slider( "option", "values" );
//setter
$( ".selector" ).slider( "option", "values", [1,5,9] );

//getter
var value = $( ".selector" ).slider( "option", "value" );
//setter
$( ".selector" ).slider( "option", "value", 37 );

Not 100% sure what you are asking, but if you need to set the range values programmatically based on a server response, then when you get the data from the server, you can get/set the values using the jQuery UI getter/setter.

The following shows the example of getting/setting the range, values, and value

Note