Question: Copy the order form from Lab Exercise 2 (the form had 3 different tools, for ex. Hammer1, Hammer2, Hammer3, we could enter how many we
Copy the order form from Lab Exercise 2 (the form had 3 different tools, for ex. Hammer1, Hammer2, Hammer3, we could enter how many we wanted to order, the price was not part of the Lab2). Add JavaScript to your program to compute the total cost of the order. The total cost will be the sum of the price of each item times the quantity ordered times 1.07 to allow for taxes. Use a JavaScript confirm() call to display "The total cost of your order is (whatever the cost is)." The confirm() function displays a message box with your message and buttons for "OK" and "Cancel." It returns true of the "OK" button is clicked and false if the cancel button is clicked. If the user of your form clicks OK, the form should be submitted to formtest.php as before. However, if the user clicks "Cancel" the form should not be submitted.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
