Instructions:


Test Problems

  1. Change the HTML code of this page so that the personal information field names are right-aligned close to the fields.

  2. Add a label that says something like "Personal Information" to the fieldset that surrounds the personal information fields.

  3. Correct the JavaScript code for the radio buttons in the true/false questions so that each of them turns green immediately when the correct answer is selected, and red when the wrong answer is selected.
    (Note that there is credit for identifying the correct answers, as well as for getting the JavaScript code right.)

  4. Debug the event and JavaScript code so that an alert box pops up saying "Thank you for submitting the form" when the users submits the form.


Name:
Street:
City:
State: Zip:
TrueFalse
1.For a selection list field called "country" in a form called "billingform", the expression billingform.country.length represents the length of the selected choice.
2. In a form called orderForm, with fields called firstName and lastName, in the Onchange event for firstName, the following expressions are equivalent:
(this.value == this.form.lastName.value)
(orderForm.firstName.value == orderForm.lastName.value)

Back to Top of Page    |    Class Home Page
11/20/2007 Robin.Richmond@tri-c.edu