Modify the radio_click.html example to have buttons, labeled red, blue, green, yellow, and orange. The event handlers for these buttons must produce messages stating the chosen color. The event handler must be implemented as a function, whose name must be assigned to the onclick attribute of the radio button elements. The chosen color must be sent to the event handler as a parameter.
Develop, test and validate an XHTML document that has checkboxes for apple (59 cents each), orange (49 cents each), banana (39 cents each), along with Submit button. Each of the checkboxes should have its own onclick event handler. the handlers must add the cost of their fruit to a total cost. An event handler for the Submit button must produce an alert window with the message Your total cost is $xxx, where xxx the total cost of the chosen fruit, including 5% sales tax. This handler must return false (to avoid actual submission of the form data).
Submit your assignment by e-mail (to siegfrie@adelphi.edu).