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
I guess something like this would do the job.
var option = document.createElement("option"); option.text = "Text"; option.value = "myvalue"; var select = document.getElementById("daySelect"); select.appendChild(option);