Validating fields using javascript

Rated 4.3/5 based on 781 customer reviews

In other words, in order to validate a field, you just associate a set of validation descriptors for each input field in the form. For such cases, a function is included which clears all validations in the validator object. Note that this validation if for fields like Textbox and multi-line text box.

validating fields using javascript-11

It is often used to collect user's information such as name, email address, location, age, and so on.But it is quite possible that some user might not enter the data what you've expected.So to save bandwidth and avoid unnecessary strain on your server resources you can validate the form data on client-side (i.e.The idea is to create a set of “validation descriptors” associated with each element in a form.The “validation descriptor” is nothing but a string specifying the type of validation to be performed.

Leave a Reply