Email Verification
1. Using function Functions
Note: You need to add the attribute onblur = "loginemailblur (this. Value)" to the <input> tag of the Code )"
Function loginemailblur (stremail) {var loginemail = $. trim ($ ("input [name = 'email ']"). val (); If (loginemail = NULL | loginemail = 'mail' | loginemail = "") {$ (". smtwarning "). empty (). text ("your email account forgot to enter");} else {If (stremail. search (/^ \ W + (-\ W +) | (\. \ W +) * \ @ [A-Za-z0-9] + ((\. |-) [A-Za-z0-9] + )*\. [A-Za-z0-9] + $ /)! =-1) {$ (". smtwarning "). empty (); Return true;} else {$ (". smtwarning "). empty (). text ("enter the correct email format ");}}}
2. Write in $ (document). Ready (function ()
// Form Verification in the login box var $ loginemail = $ ("input [name = 'email ']"); var $ export warning = $ (". smtwarning "); $ loginemail. blur (function () {var loginemail = $. trim ($ ("input [name = 'email ']"). val (); If (loginemail = NULL | loginemail = 'mail' | loginemail = "") {$ export warning. empty (). text ("your email account forgot to enter");} else {If (loginemail. search (/^ \ W + (-\ W +) | (\. \ W +) * \ @ [A-Za-z0-9] + ((\. |-) [A-Za-z0-9] + )*\. [A-Za-z0-9] + $ /)! =-1) {$ warning. empty (); Return true;} else {$ export warning. empty (). text ("enter the correct email format ");}}});
Form Verification-Email Verification