Oct 2nd, 2010, 9:34 AM
Hi Doug,
Thanks for the post!
You hit the nail on the head: regular expressions are the way to go. Try this:
I confess I haven't tested it out, but that should work okay... knock on wood. You'll need to change the "email_field_name" to the name of your email field, and enter in whatever error message you want. Let me know if you have any trouble!
- Ben
Thanks for the post!
You hit the nail on the head: regular expressions are the way to go. Try this:
Code:
rules.push("regexp,email_field_name,.*@owu\.edu$,Please enter a valid OWU email address.");
I confess I haven't tested it out, but that should work okay... knock on wood. You'll need to change the "email_field_name" to the name of your email field, and enter in whatever error message you want. Let me know if you have any trouble!
- Ben