jQuery Validate: Custom Validator for correct Email format

When using jQuery validate on a form it was picked up that the email field was not checking the length of each section, just the format ‘e.g. [email protected]’.

After googling it was suggested that a custom validator was the best solution to this issue.

Adding the above validator to my script file and then referencingĀ it fromĀ the rules for the email field (below), fixed the problem

Leave a Reply

Your email address will not be published. Required fields are marked *