A code example of how to remove all items from a drop down list with JavaScript would be greatly appreciated.
Printable View
A code example of how to remove all items from a drop down list with JavaScript would be greatly appreciated.
Try document.myForm.myList.Clear(); - else loop through the items and delete them one by one
.Clear doesn't seem to work, but I did find that I can just set the options.length = 0 and that clears the items.