Populating A Select Listbox

This example demonstrates how we can populate a Select Listbox simply by performing a lookup on one of the tables in the database and populating the Listbox with all the options it requires. This example is relatively straight forward. The Listbox begins with no options whatsoever. By clicking the button labelled "Load", you will see the Listbox populate. View the JavaScript and JSP tabs to see how it is accomplished.

LIVE EXAMPLE:

Departments:



Javascript
HTML
Java
Includes