var myReg = RegExp(/[(*)(|)(\)(:)(")(/)(<)(>)(?)]+/);
$.extend($.fn.validatebox.defaults.rules, {
myReg: {
validator: function(value){
var flag = false;
if(myReg.test(value)){
return flag;
}else{
flag=true;
return flag;
}
},
message: '编号不能包含<B> \/*:?"<>| </B>特殊符号,请重新输入.'
}
});
data-options="required:true,validType:['myReg','surpass[100]']"
<input class="easyui-textbox width7" id="" data-options="required:true,validType:['myReg','surpass[100]']" type="text" name="" value="" />