Hi,
I created two forms in two different div element. following is the code of dropdownlist. on the basis of selected value, I want to display/hide appropriate div element.
<asp:DropDownList ID="ddlClass" class="input-large span10" runat="server" OnChange="showDiv()" Style="width: auto;">
<asp:ListItem Value="0">Select Class</asp:ListItem>
<asp:ListItem Value="1">Create New Class</asp:ListItem>
</asp:DropDownList>
for eg. if user selects "Select Class" then one div element should appear and other one should disappear similarly if user selects "Create New Class" other one div element should appear and current one should disappear.
how can i do this using javascript?
Thanks in advance!