I would recomend also using the value attribute in the option tags or you wont be able to get any data from this select after you submit to your processing page. (Only the Value is passed, not the innerText of the option tag)
Here is code to add one in javascript:
Code:
var colOptions = blah.select1.options;
var objOption;
objOption = document.createElement("OPTION");
colOptions.add(objOption);
objOption.innerText="Test4";
objOption.value="4";
VBScript:
Code:
Dim colOptions
Dim objOption;
Set colOptions = = blah.select1.options
Set objOption = document.createElement("OPTION")
colOptions.add(objOption)
objOption.innerText="Test4" objOption.value="4"
Set objOption = Nothing
Set colOptions = Nothing