I want to validate that the data entered by a user is correct before they
submit the form.
How do I validate the following (or what functions/classes do I use):
- Ensure a text field is not empty
- Ensure that a text field contains only numeric values
- Ensure that the contents of a text field is shorter than a certain length
- Remove commas and other formatting from a field before submission
TIA.
submit the form.
How do I validate the following (or what functions/classes do I use):
- Ensure a text field is not empty
- Ensure that a text field contains only numeric values
- Ensure that the contents of a text field is shorter than a certain length
- Remove commas and other formatting from a field before submission
TIA.
Comment