Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js clear all select options

for (var option of document.querySelectorAll('#DropList option'))
{ 
  option.remove();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #clear #select #options
ADD COMMENT
Topic
Name
2+8 =