Client side java script is the efficient way to validate the user input in web forms. It gives the response immediately and reduces the server load. But, when there are many forms in the project and when the forms are long, writing the form validations becomes a daunting, repetitive task. Save yourself from coding long validations for your forms. Here is a simple, powerful form validation code. Using this code, you can do the common form validations in a snap.