How can i dynamically remove all options of a drop down box in javascript?
var select = document.getElementById('yourSelectBox'); while (select.firstChild) { select.removeChild(select.firstChild); }