How to dynamically change min and max in jquery ui slider? I will need to redraw the element

    1 answer 1

    Maybe I did not understand everything, but it’s trite:

    var minValue = 1; var maxValue = 1000; $slide.slider("option", "min", minValue ); $slide.slider("option", "max", maxValue ); 

    where $slide is a slider received by the selector, like this:

     var $slide = $("#my-slider"); 

    This method is described in the docks: http://api.jqueryui.com/slider/#method-option . It sets the desired property to the desired value.