如何在文本框中取单个数字或双数字 [英] how to take either single digit or double digit in textbox
本文介绍了如何在文本框中取单个数字或双数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨gud mrng,
在我的表格中....我需要在文本框中取任一个数字,即''1'或''12''..我做的是如下
login.jsp
展开 | 选择 | Wrap | 行号
解决方案
为什么你定义一个6的大小(文本框),当你只需要2个中的一个?
PS。展开 | 选择 | Wrap | 行号
谢谢..工作我删除''maxlength''...我还有另一个问题与另一个标签..被叫''L-Units''....在这个txtbox我需要输入''十进制数''以及它不应该采取字母或-ve值...这里是我的代码。
login.jsp
展开 < span class =codeDivider> | 选择 | Wrap | Line数字
什么是-ve值?
hi gud mrng,
in my form....i need to take either single digit in textbox i.e., ''1'' or ''12''..what i did is as follows
login.jsp
Expand|Select|Wrap|Line Numbers解决方案why did you define a size (textbox) of 6, when you only need one of 2?
PS.Expand|Select|Wrap|Line Numbers
hi,
thanks..its working i removed the ''maxlength''...i had another problem with another label..called ''L-Units''....in this txtbox i need to enter ''decimal numbers'' as well as it should not take letters nor -ve values...here is my code.
login.jsp
Expand|Select|Wrap|Line Numbers
what is a "-ve" value?
这篇关于如何在文本框中取单个数字或双数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆