Last Updated: February 20, 2016
·
1.522K
· harrygogonis

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>

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
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