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.