VBForums
>
Other Languages
>
XML, HTML, Javascript, Web and CSS
> How to remove items from a drop down w/ JavaScript?
PDA
Click to See Complete Forum and Search -->
:
How to remove items from a drop down w/ JavaScript?
softwareguy74
Aug 10th, 2004, 05:39 PM
A code example of how to remove all items from a drop down list with JavaScript would be greatly appreciated.
vbNeo
Aug 11th, 2004, 09:24 AM
Try document.myForm.myList.Clear(); - else loop through the items and delete them one by one
softwareguy74
Aug 12th, 2004, 11:19 AM
.Clear doesn't seem to work, but I did find that I can just set the options.length = 0 and that clears the items.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.