?
$(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 : '重复收款账号必须填写' }); })
?