$.tools.validator.fn("[required]", function($el, value) {
if (el.is(":checkbox")) {
return 'Please check' + $el.attr('vali-replace');
}
return !!value?true:'Please complete'+ $el.attr('vali-replace');
});
I wanna replace [required] like this, but I can't .
this error msg is still the default "Please complete this mandatory field." that is not what I want.
I wanna replace [required] like this, but I can't .
this error msg is still the default "Please complete this mandatory field." that is not what I want.