Demo of Simple Text input validation
Notice how you are prevented from submitting form unless the text input field is filled.
Some of the requirement of validation before allowing form to be submitted is here. These validations are some sample only and actual requirement may change.
Text Box: Can't be left blank, only text or only numeric data to be entered. There can be an upper limit of data entered in a textbox.
One of the several radio button to be selected before submitting the form
User must check before submitting. One or more to be checked.
One of the options has to be selected before submitting.
TextArea : Can't be left blank or some minimu data to be entered. There can be a restriction on maximum number of text to be entered.
|Element / Functions|| Description|
|Submit Button||Enable or Disable submit button of a web form|
|Reset Button||Resetting button on a form and Resetting the form by getElementById|
|getElementById||Managing elements of a form by using getElementById|
validation of period button
Be the first to post comment on this article :