Search This Blog

Tuesday, April 6, 2010

VALIDATE FORMS LIKE YOU'VE NEVER BEEN VALIDATING BEFORE!

VALIDATE FORMS LIKE YOU'VE NEVER BEEN VALIDATING BEFORE!

"But doesn't jQuery make it so very easy to write your own validation plugin?" Sure, but there still are a lot of subtleties that you have to worry about: You need a standard library of validation methods (think of emails, URLs, credit card numbers). You need to place error messages in the DOM and show and hide them when appropriate. You want to react to more than just a submit event, like keyup and blur. You may need different ways to specify validation rules, based on the server-side enviroment you are using on different projects. And after all, you don't want to reinvent the wheel, do you?

No comments:

Post a Comment

content-wide advt