Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other jQuery Form Validation

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #44803
    martyd777
    Member

    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)
  • The forum ‘Other’ is closed to new topics and replies.