Assignments

The following assignments work with the form used in lesson 2. All assignments must be tested in Firefox, opera, and IE.

Please write the JavaScript code implementing the modulo 11 check of an entered cpr number, as hinted at in the lesson sample.

When you have done 2.0, implement the new eventlistener instead of the onclick mechanism shown above. This means use the new mechanism on the submit event.

Get aquainted withe various events applicable to form fields. Do a sample coding of eventlistners on the individual form fields. The associated eventhandlers must do the validation instead of the method I have shown you.