Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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.');

Comment

PREVIOUS NEXT
Code Example
Javascript :: onload of modal jquery function 
Javascript :: editor js to html 
Javascript :: element.classname javascript 
Javascript :: window widht jquery 
Javascript :: react dynamic load script 
Javascript :: chart js delete old chart 
Javascript :: http get response body node js 
Javascript :: js fast inverse square root 
Javascript :: footer react 
Javascript :: ng model on change 
Javascript :: python parse single quote json 
Javascript :: passportjs serializeuser 
Javascript :: track scroll javascript 
Javascript :: what is npm audit 
Javascript :: how to route react from laravel 
Javascript :: how to create a filelist object in javascript 
Javascript :: url query example 
Javascript :: set file upllaod via javascript to html input 
Javascript :: check date js 
Javascript :: how to validate email in node js 
Javascript :: middleware 
Javascript :: merge sort algorithm in javascript 
Javascript :: javascript how to get subarray 
Javascript :: js seconds to time 
Javascript :: apollo server change port 
Javascript :: jquery 
Javascript :: how to write a program that shows a random number between 1 and 100 in your browser 
Javascript :: js copy image to clipboard 
Javascript :: how to get all attributes of an element in jquery 
Javascript :: set value lookup javascript dynamics 365 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =