Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rebuild a combobox
Message
From
08/06/2001 16:23:06
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Rebuild a combobox
Miscellaneous
Thread ID:
00517192
Message ID:
00517192
Views:
62
In my app, I have a combo box which is built after the user selects a category from another combobox. The selection is made; in onchange I add the items that are related to the first selection to the combobox object using document.all.mycbo.add theobject syntax. This works fine as long as your user doesn't change his or her mind. If the user goes back to the first box and clicks on another selection, the routine runs again ADDING the next set of items to the original. What I need to do is clear the options and then add the new ones but I can't seem to get the syntax right to do this. Is there a way to do a clear (as in, document.all.mycbo.clear) on an asp page or a for ... next routine that will remove each item in the list??? It's probably documented someplace obvious but I can't find it.

Any insight would be appreciated.
Vicki Combs
Customized software for today AND tomorrow...
Applications and web sites designed, developed and maintained. (MBE)

"Change is inevitable...unless that's changed!
Next
Reply
Map
View

Click here to load this message in the networking platform