New Page 1

   
May we store cookies
on your computer?

Checking the user entered the correct value

For this task you are required to allow the user to enter their Name and Form and then press a button.

You should then use JavaScript to check that the user has entered the correct year group (in this case year 10) by checking the first 2 characters of the form.

If the data they enter is correct, display it with a nice message. If not have a alert box inform them of their mistake.

Like the one below:

Student Entry Form

Name
Form


©1997-2012 Hartismere School,  Castleton Way, Eye, Suffolk IP23 7BL :: 01379 870315  [Disclaimer | Privacy | Stats]