Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamically removing all options from select element
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00293286
Message ID:
00293340
Vues:
32
>In DHTML is there a command to remove all options from a select object? Or should one use removechild method with:
>document.all.optlist1.removechild() in a loop?
>
>TIA

Remove all options from a select by setting the options.length property to zero. If optlist1 is the select object reference:
optlist1.options.length = 0
Michael McLain
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform