版权声明:巴啦啦小魔仙乌卡拉卡,变身---------------------------------------xiner https://blog.csdn.net/zhengsaisai/article/details/88975506
<form action="<%=basepath%>/admin/t_hotel/checkLicence"
enctype="multipart/form-data" method="post" "return checkNum();">
<input type="text" name="stbCount" required="required" id="stbMaxCount"/>
</form>
<script type="text/javascript">
function checkNum() {
var info="";
var stbCount = document.getElementById("stbMaxCount").value;
if (isNaN(stbCount)) {
info+="终端最大数量请填写数字!"+stbCount;
modalDialogAlert(info);
return false;
} else {
return true;
}
}
</script>