easyui-textbox输入框数字校验

输入框数字校验
$("#reg_num").textbox('textbox').bind('keyup', function(e){
$("#reg_num").textbox('setValue', $(this).val().replace(/\D/g,''));
});
 
 
<th width="15%">商标号</th><td width="30%">
<input name="reg_num" class="easyui-textbox" id="reg_num" type="text" required="true" value="${sasbxxb.reg_num}" validType="length[0,24]"/> </td>
</tr>
posted @ 2019-05-15 17:07  那些年的代码  阅读(3526)  评论(0编辑  收藏  举报