具有最小和最大范围的 jquery 数字文本框 [英] jquery numeric textbox with min and max ranges
问题描述
我看到了这个问题,但没有一个解决方案支持最小值和最大值范围
i see this question but none of the solutions support min and max values range
如何只允许数字(0-9) 在 HTML 输入框中使用 jQuery?
我看到 http://jstepper.emkay.dk/ 尝试这样做,但似乎非常错误,因为它允许您输入多个小数位和其他字符,例如;".
I see that http://jstepper.emkay.dk/ attempts to do this but seems very buggy as it allows you to enter multiple decimal places and other characters such as ";".
有没有办法我可以使用这些解决方案之一,并且还说,在文本框条目中只支持 0 和 100 的最小值?
is there i way i can use one of these solutions and also say, only support min of 0 and max of 100 in the textbox entry?
推荐答案
我是 jStepper 的作者,我刚刚更新了插件,可以做你喜欢的事情.
I am the author of jStepper and I just updated the plugin to be able to do what you like.
所以再试一次,看看它现在是否有效:)
So give it a try again and see if it works now :)
这篇关于具有最小和最大范围的 jquery 数字文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!