jquery validator add method

Solutions on MaxInterview for jquery validator add method by the best coders in the world

showing results for - "jquery validator add method"
Nicole
09 Mar 2017
1jQuery.validator.addMethod("laxEmail", function(value, element) {
2
3  // allow any non-whitespace characters as the host part
4
5  return this.optional( element ) || /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@(?:\S{1,63})$/.test( value );
6
7}, 'Please enter a valid email address.');
8
9