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

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

Apples (200Rs/kg) Oranges (180Rs/dozen)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!