I have an array declared in a script:
var myArray = new Array("1", "2", "3", "4", "5" . . . . . "N");
I have a form which contains a drop down menu:
<form id="myForm">
<select id="selectNumber">
<option>Choose a number</option>
</select>
</form>
Using Javascript, how will I populate the rest of the drop down menu with the array values? So that the options will be "Choose a number", "1", "2", "3", "4", "5" . . . . . "N"?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…