admin管理员组文章数量:1301497
I would like to set a minimum and maximum allowed number to be entered in text input I know I can do this with range input but will it still have the max and min when used in non patible browsers?
if not could you please point me in the right direction, thanks for reading.
I would like to set a minimum and maximum allowed number to be entered in text input I know I can do this with range input but will it still have the max and min when used in non patible browsers?
if not could you please point me in the right direction, thanks for reading.
Share asked Feb 1, 2011 at 4:39 Tommy ArnoldTommy Arnold 3,3898 gold badges33 silver badges40 bronze badges3 Answers
Reset to default 6Use jquery validator plugin. It has a nice set of features, and min max validation too. But checking values on server side is a must too. Here is an examples for min and max.
No; you can never rely on the client. Always check on the server side as well.
I've had success with the jQuery h5Validate plugin. Its pretty simple in what it aims to acplish (which is exactly what you want here).
Also, validate it on the server side too.
本文标签: min max number in text inputJqueryjavascriptStack Overflow
版权声明:本文标题:min max number in text input - Jqueryjavascript - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741676955a2391936.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论