Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rebuild a combobox
Message
De
08/06/2001 16:23:06
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Rebuild a combobox
Divers
Thread ID:
00517192
Message ID:
00517192
Vues:
63
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!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform