2.34. Step 4: Update the order formOnce you've got the customer's address, you need to update the pizza order form. You'll need the browser again, as well as some help from the Document Object Model. We're getting close to being done with the Break Neck app! Your JavaScript callback function can use the browser and the Document Object Model to update the order form. You've already gotten the customer's address in Steps 2 and 3... ...and can use the DOM to update the web form, similar to how you got the customer's phone number earlier. If you make a change to a web page using the Document Object Model, the browser updates the web page immediately. |