treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Email issue with form validation

  • I have a form that worked just fine and I found a validator that I liked, but the issue is that it has a sumbit handler in it as well which I don't need, I just want the validation functions to work and have nothing to do with the sending of the email. Here is the javascript I have: http://codepen.io/anon/pen/JFLaH.

    When I just remove the submit handler, it submits, but then the validation doesn't work. Any help/advice would be great.