海口自学车场地:JS(select联动text)

来源:百度文库 编辑:中科新闻网 时间:2024/05/08 20:17:24
要实现选择人民币,TextBox的Text=1,选择美元TextBox的Text=8.2
<asp:DropDownList ID="CurrType" runat="server" Width="51px">
<asp:ListItem Value="1">人民币</asp:ListItem>
<asp:ListItem Value="8.2">美元</asp:ListItem>
</asp:DropDownList>

<asp:TextBox ID="sss" runat="server" Width="88px"></asp:TextBox>

<asp:DropDownList ID="CurrType" runat="server" Width="51px">
改为
<asp:DropDownList ID="CurrType" runat="server" AutoPostBack=true Width="51px">
然后在添加方法