Answers for "jquery validator add method"

0

jquery validator add method

jQuery.validator.addMethod("laxEmail", function(value, element) {

  // allow any non-whitespace characters as the host part

  return this.optional( element ) || /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@(?:\S{1,63})$/.test( value );

}, 'Please enter a valid email address.');
Posted by: Guest on April-18-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language