Answers for "javascript option remove all"

4

remove all options from select jquery

$('#mySelect')
    .empty()
Posted by: Guest on March-18-2020
1

js clear all select options

for (var option of document.querySelectorAll('#DropList option'))
{ 
  option.remove();
}
Posted by: Guest on February-25-2022

Code answers related to "javascript option remove all"

Code answers related to "Javascript"

Browse Popular Code Answers by Language