All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

jQuery Form Validation

  • # May 15, 2013 at 2:34 pm

    Hi everybody. I’m a front-end developer who has recently taken interest in learning jQuery. I made my first jQuery script, which is a form validator. It works by listening to changes made to the inputs, taking the value of the input and matching it against a reg ex. If there is a match, the field turns green, else the field turns red. The program works fine, but it seems bulky to me. You can find it here:

    My question to all is, how does my code look? Is there a simpler, lighter way to accomplish the same outcome? Any and all feedback is appreciated, thanks.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed