Commit 345092c5 authored by houyu's avatar houyu

输入框校验

parent f873629b
......@@ -98,9 +98,9 @@
</td>
</tr>
<tr>
<th width="15">缴款人账号</th>
<th width="15">缴款人账号111</th>
<td width="35%">
<input id="zhanghao" name="fstzsXm.zhanghao" style="width:90%" value="${fstzsXm.zhanghao}"/>
<input id="zhanghao" onblur="check()" name="fstzsXm.zhanghao" style="width:90%" value="${fstzsXm.zhanghao}"/>
</td>
<th width="15">缴款人开户银行</th>
<td width="35%">
......@@ -260,6 +260,17 @@
</div>
</div>
<script type="text/javascript">
function check(){
var value = document.getElementById("zhanghao").value;
var reg=/^\d+$/;
if(reg.test(value)==true){
}else{
$.messager.alert('提示', '请输入正确的数字!')
return false;
}
}
var money = 0; //合计总钱数
var numf = 0;
var numb = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment