If the user of my site changes their selection in a dropdownlist, I would like to handle that client side and based on what they chose it would populate a text box with different text.
I can figure out how to do this server side no problem, but how do I get to do this in javascript.
I have something like:
[code=xml]
<asp:DropDownLi st ID="StatusDropD ownList" runat="server" >
<asp:ListItem Selected="True" Text="Released" Value="Released ">Released</asp:ListItem>
<asp:ListItem Text="Down" Value="Down">Do wn</asp:ListItem>
<asp:ListItem Text="Blocked" Value="Blocked" >Blocked</asp:ListItem>
</asp:DropDownLis t>[/code]
I have an text box that I want to populate based on what the user selects and I would like to do this in javascript...I cannot seem to get that function to work.
any suggestions?
thanks.
I can figure out how to do this server side no problem, but how do I get to do this in javascript.
I have something like:
[code=xml]
<asp:DropDownLi st ID="StatusDropD ownList" runat="server" >
<asp:ListItem Selected="True" Text="Released" Value="Released ">Released</asp:ListItem>
<asp:ListItem Text="Down" Value="Down">Do wn</asp:ListItem>
<asp:ListItem Text="Blocked" Value="Blocked" >Blocked</asp:ListItem>
</asp:DropDownLis t>[/code]
I have an text box that I want to populate based on what the user selects and I would like to do this in javascript...I cannot seem to get that function to work.
any suggestions?
thanks.
Comment