Question: please program in javascript using the html and instructions below: The file order.html provided to you already has a form with the id orderForm. You

please program in javascript using the html and instructions below:
The file order.html provided to you already has a form with the id orderForm. You need to add 2 input elements to this form:
A text input with the name 'company'
A number input with the name 'quantity.'
Both of these values must be required for form submission.
Don't change or add anything else in this file order.html.
Add code in the file orderProcess.js for an event handler that handles the submission of the form orderForm and does the following
Prevents submission of the form (which is the default action for the submit event on a form).
Gets the values of the 2 input elements in the form
Note: the value of an input element in a form is available as the attribute value of that input element.
Appends a new row to the table with the id orderTable in the file order.html using the values entered by the user in the 2 input elements.
please program in javascript using the html and

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 Programming Questions!