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>
原文地址:https://www.cnblogs.com/zhuyeshen/p/10870695.html