The output of this simple HTML form willbe a drop
down box called "customers". The paragraph below the form
contains a div tag called "txtHint". The div is used as a
placeholder for info retrieved from the web server.
When the user select data, a function called "showCustomer()"
is executed. The execution of the function is triggered by the "onchange"
event of the javascript . In other words: Each time the user can change the value in
the drop down box, the function showCustomer is called.
The JavaScript code is listed below
|