下拉列表单的高级应用
<html>
<head>
<title>下拉列表单的高级应用</title>
</head>
<script language="javascript">
function setTheTextValue(object){
document.all.re_name.value=object.value;
}
</script>
<body>
<center>下拉列表单的高级应用</center>
<SELECT name="test">
<option value="aaa">aaa</option>
<option value="bbb">bbb</option>
<option value="ccc">ccc</option>
<option value="ddd">ddd</option>
<option value="eee" selected>eee</option>
</SELECT>
<input type="text" name="re_name" style="FONT-SIZE:10pt;WIDTH:100px;HEIGHT:20px"><span style="WIDTH:18px">
<SELECT style="MARGIN-LEFT: -100px; WIDTH: 118px; BACKGROUND-COLOR: #ffeeee" οnclick="javascript:setTheTextValue(this);" name="r00">
<option value="aaa" selected>aaa</option>
<option value="bbb">bbb</option>
<option value="ccc">ccc</option>
<option value="ddd">ddd</option>
<option value="eee">eee</option>
</SELECT>
</span>
</body>
</html>