EasyUI validate js 검증 규칙 파일

1762 단어 validate
$(document).ready(function(){

var urlAccountform = contextPath+'xxx.action';
$('#eidtAccountForm').form({
    url:urlAccountform,
    onSubmit:function(){
        return $(this).form('validate');
    },
    success:function(data){
            if(data == "true"){
                $.messager.show({
                    title:' ',
                    msg:' ',
                    showType:'show'
                });  
          
            }else{
                $.messager.show({
                    title:' ',
                    msg:' !',
                    showType:'show'
                }); 
            }
    }
});



    $('#accountaddress').validatebox({   
    required:true,
    validType : 'accountAddressMaxLength[50]',
    missingMessage : ' ' 
    });
    $('#accountname').validatebox({   
    required:true,
    validType:['isAllChinese','chinesemaxLength[6]'],
missingMessage : ' '    
    }); 
    
    $('#accountno').validatebox({   
    required:true,
    validType:['isAllNumber','accountNOMaxLength[30]'], 
missingMessage : ' '    
    });     
    $('#accountno2').validatebox({   
    required:true,
    validType:['isAllNumber','accountNOMaxLength[30]',"equals['#accountno']"],
    missingMessage : ' '
    });


})

좋은 웹페이지 즐겨찾기