Develop an XHTML document that has checkboxes for apple (30 rupees each), orange (10 rupees each), and banana (5 rupees each) along with submit button. Each checkboxes should have its own onclick event handler. These 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 Rs xxx’, where xxx is the total cost of the chose fruit, including 5 percent sales tax. This handler must return ‘false’ (to avoid actual submission of the form data). Modify the document to accept quantity for each item using textboxes.
Last edited by bormikstel on Sat Jun 20, 2020 9:36 pm, edited 1 time in total.
|