2.11. On to the JavaScriptNow you're ready to dig into some JavaScript. You know the name of the function that you'll be using to get the customer's phone number: getCustomerInfo(). This function needs to send the customer's phone number to Break Neck's server, and ask for that customer's address. Let's start out with just the function name: function getCustomerInfo() ...Here's where all your code will go. }The first thing we need to do is get the customer's phone number from the HTML form.
|