The HTML page contains a link to an external JavaScript, an HTML form, and a div element:
<> |
As you can see it is just a simple HTML form with a drop down box called "customers".
The
below the form will be used as a placeholder for info retrieved from the web server.When the user selects data, a function called "showUser()" is executed. The execution of the function is triggered by the "onchange" event. In other words: Each time the user change the value in the drop down box, the function showUser() is called.