美式简约设计说明:JS(select联动text)

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/28 18:54:40
要实现选择人民币,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">
然后在添加方法