jQuery slider tutorials?

点点圈 提交于 2019-12-21 17:22:50

问题


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.


回答1:


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);
    }
})



回答2:


I have written an article on using the jQuery UI Slider at my website, check out the link:

http://www.ryancoughlin.com/2008/11/04/using-the-jquery-ui-slider/

Thanks and let me know if you have any questions, Ryan



来源:https://stackoverflow.com/questions/297245/jquery-slider-tutorials

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!