I have a dropdown, and I want to clear it, but this code only clears some items
Code:var i = 0; var dropDown = document.search.elements['selProductGroup']; for (i = 0; i <= dropDown.length; i++) { dropDown.options.remove(i); }
|
Results 1 to 5 of 5
Threaded View
|
Click Here to Expand Forum to Full Width |