| www.richandlucy.com | © www.richandlucy.com |
|
Home
|
Photos
|
Stuff
|
Forum
|
|
|
> Stuff > Lucy's Portfolio! > Javascript Example 10
Form Validation Create an HTML form to sell any product you like. Ask for at least the following pieces of information:
Use Javascript validation when a button is pressed to validate as accurately as possible whether they have filled in the correct information. E.g. telephone number should contain only numbers and there should be the correct number of them and email addresses should have an @ symbol and a . symbol in them. If they haven't, display an appropriate alert and move the focus to the appropriate input. If all the inputs have been entered correctly, display the answers in a layer on the same page - or in another input box if you prefer. You can see the page created here
|
||||||||||||||
|
||||||||||||||