jQuery滑块教程? [英] jQuery slider tutorials?

查看:41
本文介绍了jQuery滑块教程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道一些很好的教程,这些教程解释了如何使用JQuery Slider.

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

我找到了一些,但没有一个能真正表达我所需要的明确内容.我真正需要弄清楚的方法是使滑块从1.0-5.0(包括所有十分之几)变为零,并在更改时根据该值设置一个隐藏控件.

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.

谢谢.

推荐答案

关于文档, jQuery网站很好.

$('#mySlider').slider({
    min : 1,
    max : 5,
    stepping: .1,   // or, steps: 40
    change : function (e, ui) {
        $('#myHiddenInput').val(ui.value);
    }
})

这篇关于jQuery滑块教程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆