Forms

A . Create a user registration page that takes information from the user and provides clear error messages for incorrect input and use regular expressions to accept the correct input. Create the regular expressions to validate the form for:

The first name and last name input as characters
A valid email address
A valid phone number
A valid state and Post Code
Test your script in at least two browsers and document any debugging plus version control
B. Use the errorMessages.js form that is worked on class and with this form add the following:

Allow for the forms element label to have more than one class.
HINT: use concatenation to add the error class, and remove the error class by slicing off the text after the last space in the className Value.
Change the addToolTipHandlers() function so that it also applies appropriate event listeners to the forms label.
HINT: Start by changing the function so that it takes the elements id value as its argument, then either give each label an id value of id + label, or use previousSibling reference, as in the showTooltip() and hideTooltip() functions
Create some code for disabling the submit button while simultaneously implementing some of the suggested additions: changing the buttons class or text, adding a message beside it or creating a modal window.
Test your script in at least two browsers and document any debugging plus version control

You can leave a response, or trackback from your own site.