jquery UI slider min/max values

Yovo picture Yovo · Apr 27, 2011 · Viewed 21.1k times · Source

Can I put text min/max values for jquery ui slider and when scroll to appear digits? Here is an example, the left slider for max value has "no limit" and when you scroll it, appear digits.

Answer

Lalit Bhudiya picture Lalit Bhudiya · Mar 31, 2012

Yes we can set min-max

$("#slider").slider({
    range: "max",
    min: 0, // min value
    max: 200, // max value
    step: 0.1,
    value: 200, // default value of slider
    slide: function(event, ui) {
        $("#amount").val(ui.value);
    }
});​