Question: Copy and paste the following HTML code into a new document: Exercise 4 Order Books Online Book Quantity Price Basic XHTML $19.99 Intro to PHP

Copy and paste the following HTML code into a new document:

Exercise 4

Order Books Online

Book Quantity Price
Basic XHTML $19.99
Intro to PHP $86.00
Advanced JQuery $55.00


Write JavaScript code that is executed during form submission to calculate the cost of each book (based on quantity specified) and the overall total cost. The results should be displayed on the same page beneath the form submission button. Use any CSS at your discretion if desired.

All JavaScript code must be external. If any fields are left blank or do not contain a number, an alert box should display an appropriate error message upon form submission.

sample ouput:

Copy and paste the following HTML code into a new document: Exercise

Order Books Online Book Quantity Price $19.99 Basic XHTML 1 Intro to PHP $86.00 Advanced JQuery 3 $55.00 Place Order Basic XHTML (Quantity 1): $19.99 Intro to PHP (Quantity 20: $172 Advanced JQuery (Quantity 3): $165 Final Total: $356.99

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!