Question: This question uses an html FORM (not a prompt box) that will connect to JavaScript through the use of the HTML onclick event attribute used

This question uses an html FORM (not a prompt box) that will connect to JavaScript through the use of the HTML onclick event attribute used in the Submit button element in the FORM. Create a Web page that will display the name of a movie theatre (you can use your last name as the name of the theatre), the price of an adult ticket, and the price of a child's ticket. Your Web Page will use a html "FORM" (not a prompt box) to obtain from the user their first name, last name, the number of adult tickets, and the number of children tickets needed to purchase. Your Submit button, in the FORM, will use the onclick event handler to call a JavaScript function (see page 122 step 11 - the JavaScript function called in this example on page 122 is named "displayOrder()"). This function will use the input entered in the FORM to determine the total cost of adult tickets, the total cost of children tickets, and the total of the entire purchase (adult cost + children cost). Your program will display, in a read-only text box (located in the FORM), the user's first name, last name, the number of adult tickets and the number of children tickets entered by the user. In the same read-only text box, your code will also display the total cost for the adult tickets, the total cost for the children tickets, and the total final cost (adult cost + children cost).

NOTE: You must use both an HTML form and a JavaScript function (defined in the head tags of your code) to get credit for this assignment!!!!!!

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!