81,092
社区成员
发帖
与我相关
我的任务
分享
//公司名称
$("#C_CMP_NAME").formValidator({empty:true,onFocus:"请输入公司名称",onCorrect:"正确 ",onEmpty:"公司名称不能为空"})
.inputValidator({min:5,max:20,onErrorMin:"至少输入5个字符",onErrorMax:"长度不能超过20个字符!",empty:{leftEmpty:false,emptyError:"不能以空格开头!"},onError:"不能为空,请您输入公司名称"})
.regexValidator({regExp:"C_CMP_NAME",dataType:"enum",onError:"请输入5-20个字符,只能由中英文和下划线组成",oncorrect:"正确"});
//用户账号
$("#C_USER_ID").formValidator({empty:true,onFocus:"请输入用户账号",onCorrect:"正确",onEmpty:"用户账号不能为空"})
.inputValidator({min:5,max:20,onErrorMin:"至少输入5个字符",onErrorMax:"长度不能超过20个字符!",empty:{leftEmpty:false,emptyError:"不能以空格开头!"},onError:"不能为空,请您输入用户账号"})
.regexValidator({regExp:"C_USER_ID",dataType:"enum",onError:"请输入5-20个字符,只能由英文,数字和下划线组成",oncorrect:"正确"})
;