SyntaxFix
Write A Post
Hire A Developer
Questions
Something like this:
var option = document.createElement("option"); option.text = "Text"; option.value = "myvalue"; var select = document.getElementById("id-to-my-select-box"); select.appendChild(option);