Validating textbox javascript dating on plenty of fish

You can then adapt this form to your own requirements.

Let's build a simple form with a validation script.

Form validation is the process of checking that a form has been filled in correctly before it is processed.

Here I am giving you the form validation codes in Java Script. These are simple meta characters which do pattern matching. If the entered characters in the field is not in lower case or upper case. When it’s about checking contact field or zip code field, one need to check whether only the number have been entered or not.

For example i check the password length and notify user that he/she should reconside entring password ? can you pleas help me with it if it is not possible to check the edit box on exit (losing focus ) then how i can check the text boxes which i have on my page ?

Thank you [ August 14, 2005: Message edited by: Bear Bibeault ] You could use an on Change handler which will trigger if the value within a texbox changes.

[a-z] : It matches characters from lowercase ‘a’ to lowercase ‘z’. If by mistake, user skips entering any detail, soon the alert message appear on the form.

escaping - by -) [0-9] : It matches digital number from 0-9. That means, you could be very sure about the form, whether users have entered the details or not.

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “validating textbox javascript”