Search code examples
jqueryjquery-uijquery-ui-slider

get jquery ui slider value outside of callback


Is it possible to get the value of the handle of a jQuery UI Slider outside of the slide (or any) callback? I know you can get it inside the slide with ui.value, but how do I get that value from the outside everytime I move the slider?

Thank you


Solution

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

    Read the value using $( "#slider-range-max" ).slider( "value" ) with the element id slider-range-max

    Demo - http://fiddle.jshell.net/kyQZA/1/