Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jquery UI slider min/max values

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.

like image 532
Yovo Avatar asked Apr 27 '11 09:04

Yovo


People also ask

How to set range slider value in jQuery?

Syntax: $( ". selector" ). slider("value");

How to reset range slider in jQuery?

If you don't want to store your original value or you have multiple sliders try this: // Reset the sliders to their original min/max values $('. slider'). each(function(){ var options = $(this).

How to refresh the slider in javascript?

Syntax: $( ". selector" ). slider("refresh");

What is jQuery slider?

jQuery sliders can be used for nearly anything but most are used display a number of photos in a slideshow format in a way formerly handled by Adobe Flash.


1 Answers

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);
    }
});​
like image 150
Lalit Bhudiya Avatar answered Sep 21 '22 09:09

Lalit Bhudiya