Thursday, 17 December 2015

Ex:11 Data Validation

JavaScript can be used for client side validation of data entered in HTML forms.
Client side validation is something which can be checked in browser itself with out disturbing the browser.
Say if you are creating an account in yahoo, the user name needs to be checked whether it exists already, for that the user enters the user name in form and clicks on submit button. The form is sent to web server where it checks for the existence of user id using some CGI script.
This is server side validation.
In client side validation,we can access data which is and checks can be made on the data.
For example,below are some of the checks which we can make.
- Non alphabetic characters in name
- Non numeric characters in roll number, age etc
- Bid amount less than minimum permissible.


Post a Comment