Grow your CSS skills. Land your dream job.

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:

    http://codepen.io/Martin-Duran/pen/IrimC

    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.

*May or may not contain any actual "CSS" or "Tricks".