SyntaxFix
Write A Post
Hire A Developer
Questions
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);