Now you can explore these areas and comment here in case of any issues.
The option of using pure HTML, sometimes with a touch of CSS, to complement Java Script form validation was until recently unthinkable.
Listing 3: Validation for all letters Figure 3: Above output checks the entered data is letters or include any other char also. Two of them are using regular expression for matching and the other one is simple so not writing regex but if you want you can write a regex for this case also.
There are various validation schemes for checking the other type of validations, like check for all or no, checking for all letters and numbers and restricting the length of field.
Different browsers may mark the input box in some way (Firefox 4 Beta adds a red box-shadow by default), display a warning (Opera) or even prevent the form from being submitted if this field has no value.
Hopefully these behaviours will converge in future releases.
If you have such a form on your site, I'm sure that from time to time, you would have received the results of your form with some essential field (like the email address or the visitor's name, or even the feedback itself) omitted. One way around it is to validate the essential fields with a simple Java Script.
As soon as a single character has been entered this changes to a green marker to indicate that the input is 'valid'.Sounds mess, anyways never mind the real question remains ; How to validate text fields????? by Christopher Heng, Many websites, like thesitewizard.com, have a feedback form of some sort so that visitors can make comments to the webmasters.Among other things, the script made by the wizard automatically checks for empty fields.