Skip to content Skip to sidebar Skip to footer

Jquery Ui Slider Handle On Last Saved Value

How can I set the handle to start on the last saved value? For some reason it's always in the last position. I'm setting my start position and max value using values from the datab

Solution 1:

Change the value option to:

value: parseInt($("input[name='shirts']").val()),

Here is a full demo: http://jsfiddle.net/lucuma/hcKwQ/1/

The plugin is expecting a number so you need to parse it..

http://jqueryui.com/demos/slider/#option-value

Post a Comment for "Jquery Ui Slider Handle On Last Saved Value"