How can i dynamically remove all options of a drop down box in javascript?
There is simple and elegant way to do this:
for(var o of document.querySelectorAll('#id > option')) { o.remove() }