Do you mean changing the text inside the options if so take a look at this example!
Code:
<html>
<head>
<script>
function changeSelectBox(){
var ln=document.theFrm.opt.options.length;
var op=[];
for(i=0;i<ln;i++){
op[i]=document.theFrm.opt.options[i].text;
}
op.reverse();
for(i=0;i<ln;i++){
document.theFrm.opt.options[i].text=op[i];
}
}
</script>
</head>
<body>
<form name="theFrm">
<select name="opt">
<option>option1</option>
<option>option2</option>
<option>option3</option>
<option>option4</option>
<option>option5</option>
<option>option6</option>
</select>
<input type="button" value="change me" onclick="changeSelectBox();">
</form>
</body>
</html>
use the .text! document.formName.selectElement.options[index].text;
Good Luck!
Jon!
Bookmarks