带有最小和最大范围的jquery数字文本框 [英] jquery numeric textbox with min and max ranges

查看:82
本文介绍了带有最小和最大范围的jquery数字文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到了这个问题,但是没有一个解决方案支持最小值和最大值范围

i see this question but none of the solutions support min and max values range

如何仅允许数字使用jQuery在HTML输入框中显示(0-9)?

我看到 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屋!

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