Question: Q. 2. Given the HTML code of the form below. Give each of the checkboxes its own Onclick event handler. These handlers must add the

Q. 2. Given the HTML code of the form below. Give each of the checkboxes 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 chosen fruit. (PLO:GA3,CLO:1,C2 - 10 marks) Hints: onclick="myfunction (...), function myfunction (...) If your desired prices is of string type, use parseInt(stringVariable) to convert to a number ; Apples (200Rs/kg) Oranges (180Rs/dozen) Submit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
