javascript html js 文本框 只能 输入 数字
Html代码
<input name="selectID" type="text" class="input" size="30" style="ime-mode:disabled" οnkeydοwn="if(event.keyCode==13)event.keyCode=9" onKeyPress="if ((event.keyCode <48 || event.keyCode>57)) event.returnValue=false">
<input name="selectID" type="text" class="input" size="30" style="ime-mode:disabled" οnkeydοwn="if(event.keyCode==13)event.keyCode=9" onKeyPress="if ((event.keyCode <48 || event.keyCode>57)) event.returnValue=false">
转载于:https://www.cnblogs.com/andycho/archive/2011/06/11/2078421.html