Form Validation
Create a form for the user to enter the data seen blow
As part of the design there should be a with its display attribute set to hidden that will be displayed if the user has not completed said field correctly
Validating fields First and Last name should not be blank and not start with numbers. Use a simple regular expression to validate the , phone, and date fields The Customer Number should be a C followed by four digits. The Order Number should be a P followed by four digits.
Additional Things When appropriate, set the maxlength property of the textbox so that the user cannot type more characters than would be valid. Make the warning message div “disappear” (change its display attribute’s value) if the user changes the text in the corresponding textbox.
Alert the user about which fields need correcting
If the user enters everything correctly and clicks Enter, have an alert saying so