Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • async is spelled wrong in your code. And it is the not proper way to do it Commented Jan 16, 2014 at 14:31
  • You are checking if the email is not equal 0. Try email.length != 0 as a first step. Also is good to run the validation before you get into the ajax block. Try using regex for the email. If it passes run the post block if not return an error Commented Jan 16, 2014 at 14:32