I\'d like to add option to a select dynamically using plain javascript. Everything I could find involves JQuery or tries to create the select dynamically as well. The clos
Try this;
var data = ""; data = " Some Option "; options = []; options.push(data); select = document.getElementById("drop_down_id"); select.innerHTML = optionsHTML.join('\n');