function checkform(){
if(!isNumeric($('.apply_money').val())){
alert("必须是数字");
return false;
}
var num = parseInt($('.apply_money').val());
if(num<=0){
alert("请输入大于0的数");
return false;
}
return true;
}<form action="?action=apply_insert" method="post" onsubmit="return checkform()" enctype="multipart/form-data">
在提交之前 验证表单数字合法性