select的innerHTML的问题!
<form name="form1" action="" method="">
<select name="sel1">
<option value="aaa">aaa</option>
<option value="bbb">bbb</option>
</select>
<input name="ok" type="button" onclick="okcl()" value="试试吧?">
<input name="ok2" type="button" onclick="alert(form1.sel1.innerHTML)" value="看看select的innerHTML内容">
</form>
<script language="javascript">
function okcl(){
form1.sel1.innerHTML="<option value='ccc'>ccc</option>"
}
</script>
[此贴子已经被作者于2005-12-19 20:50:02编辑过]