jquery - 如何使用 Jquery Knob 显示单位

标签 jquery jquery-plugins jquery-knob

我正在使用 Jquery 旋钮( http://anthonyterrien.com/knob/ ),它工作得很好,但不是在中间显示无量纲数字,我想用它显示单位 ei % 或 F 等...我该怎么做?

最佳答案

$("input.Measure").knob({
        min: 1
        max: 10
        stopper: true,
        readOnly: false,//if true This will Set the Knob readonly cannot click
        draw: function () {
             $(this.i).val(this.cv + '%') //Puts a percent after values
        },
        release: function (value) {
      //Do something as you release the mouse
    }
});

关于jquery - 如何使用 Jquery Knob 显示单位,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18955708/

相关文章:

javascript - jQuery 自定义滚动条插件不随 horizo​​ntalScroll 更新 : true

javascript - 如何在没有输入文件的情况下在 jQuery Cropit 中插入图像

jquery - 如何在 jquery 中动态更改旋钮值 ..?

jquery - 我有两个操作链接和一个模式弹出窗口。有什么方法可以知道点击了哪个操作链接

javascript - 如何使用 jQuery 选择器获取此元素?

jquery - 全局位置输入自动完成

jQuery 旋钮 tron 皮肤问题

jquery - Nodejs 函数中的域错误处理程序装饰器

javascript - 为了让这个 beforeafter.js 插件正常工作,我缺少什么?

jquery - 添加百分比到jquery旋钮输入值