How to use jquery validations for web site forms
The web form is an essential part of web site designing. No dout about that, Almost every web site has a contact form or any other optional forms for user interactions with the web site.
So that, Here i thought to share a best practice on web form fields Validations with validate.js libarary. So it has become more easy with this jQuery validate plugin . so that i thought to share this quick tutorial on web form validations. this so quick and easy to use.
Just only 3 easy and quicksteps. No more talks, Lets get started,
1. Link jQuery library & validation library file on web page header tags.
2. Add document.ready jQuery headers to the head tags.
3. Rule as you want to validate each (more advance validating rules)
Link jQuery library & validation library file on web page header (inside the <head></head> tags).
Defining jQuery document.ready event at bottom of the web page header (bellow the above code, and before </head> tag).
Rule as you want to validate each (more advance validating rules)
Easy as 1,2,3 right?, just give a try on your next project if you are a productive web developer. Good luck ! Subscribe for more Tips.. Keep in touch !