这段代码怎么写呢?
一个表格:
<table><tr>
<td></td>
<td>
<select name="select1">
<option value="PreSel4"></option>
<option value="PreSel5"></option>
</select>
</td>
</tr></table>
两个服务器端函数:
<%
Sub PreSel4()
Response.Write "<input name='TextVal'>"
End Sub
Sub PreSel5()
Response.Write "<select name='TextVal'>"
Response.Write "<option value='医疗'>医疗</option>"
Response.Write "<option value='其他'>其他</option>"
Response.Write "</select>"
End Sub
%>
我想当select1进行onChange事件时,根据select1中的值调用相应的函数,
以便在表格的第一个单元格内填入相应的控件(文本框或下拉框)。
请各位大侠指教,谢谢!