Validate Email Form with Jquery
This jQuery script will validate your email forms for you. If emails are not valid, it will add text saying that the email is invalid after your input. It will also change the label to be red, and prevent the form from submitting (return false)
Check out the code here:
http://jsfiddle.net/enterharry/YFGRg/
<iframe style="width: 100%; height: 300px" src="http://jsfiddle.net/enterharry/YFGRg/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
Written by Harry Gogonis
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Javascript
Authors
Filed Under
Did you know?
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#