Easy email validation with jQuery
Friday, December 11, 2009 at 5:14PM jQuery is an excellent Javascript framework/library that makes complicated things simple (simple enough for a Javascript punter like myself to use).
Recently I found a need for email validation on a form. The form is a fancy AJAX form, that was giving me troubles with preSubmit callbacks and the like. I tried a heavyweight validation plugin for jQuery, which worked, but was too complicated for my simple needs. In the end I went with regular expression validation and merely disabled the submit button if the validation failed. The full instructions are here, but here’s (a snippet of) my implementation:
Permalink | Comments Off |
Javascript,
email,
jQuery,
validation in
computers 

Reader Comments (1)
http://www.ex-parrot.com/pdw/Mail-RFC822-Address.html