how to create drop down select in create element javascript code example
Example: javascript select element in dropdown
document.getElementById("stateSelect").selected = true;
document.getElementById("stateSelect").selected = true;