
When I select an item in one listbox, I want it to filter the options in another listbox. For example, I have a listbox that contains office locations. When I select a location, a second listbox should display the servers at that particular location. How do I update the second listbox based on the choice from the first listbox? In this sample code, I use the remove and add methods of a select list to update the contents dynamically. Since add is a method of a Select object, you must add Option objects to it.
|