Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery slider tutorials?

Does anyone know of some good tutorials that explain how to use the JQuery Slider.

I've found a few, but none of them really present what I need in clear terms. What I really need to figure out how to do is make the slider go from 1.0 - 5.0 (including all tenths) and when it changes set a hidden control based on that value.

Thanks.

like image 611
Ryan Smith Avatar asked Oct 14 '22 18:10

Ryan Smith


1 Answers

The documentation on the jQuery site is pretty good.

$('#mySlider').slider({
    min : 1,
    max : 5,
    stepping: .1,   // or, steps: 40
    change : function (e, ui) {
        $('#myHiddenInput').val(ui.value);
    }
})
like image 107
nickf Avatar answered Oct 18 '22 09:10

nickf