Jquery - Match two email address
Posted
by
Caremy
on Stack Overflow
See other posts from Stack Overflow
or by Caremy
Published on 2011-01-18T02:39:02Z
Indexed on
2011/01/18
2:53 UTC
Read the original article
Hit count: 361
I'm setting up a registration form and use the jquery validation script. There are two email address input textboxes. Email 1 must match Email 2. How do we validate these two email to ensure the 2nd email match the 1st email? Hope someone could help with the validation script. Here's my textboxes coding.
<label class="input required">7. Email Address:</label>
<input name="author_email" id="author_email" class="inputclass pageRequired email" maxlength="254" title="Email address required" /> <br />
<label class="input required">8. Confirm Email:</label>
<input name="author_confirm_email" id="author_confirm_email" class="inputclass pageRequired email" equalTo:"#author_email" maxlength="254" title="Please confirm your email address" /> <br />
Thank you.
© Stack Overflow or respective owner