i have develop a function in which i hide the dropdown or unhide using java script.
it should work fine but i use the prperties of drop autopost back =true so it will be hide for some
time and un hide for some time.
i will call my function on dropdown change.
following my code
var custType=document.getElementById('ddlshow');
var custTypeVal=custType.options[custType.selectedIndex].text;
if(custTypeVal=='value')
{
document.getElementById("ddlType").style.display = "block";
document.getElementById("Label33").style.display = "block";
}
else
{
document.getElementById("ddlType").style.display = "none";
document.getElementById("Label33").style.display = "none";
}
how i parmanent hide or un hide on change dropdown1 not for some time please help me following my html
<asp:DropDownList ID="custType" runat="server" AutoPostBack="true">
<asp:ListItem value="11">value</asp:ListItem>
<asp:ListItem value="12">value</asp:ListItem>
</asp:DropDownList>
auto post is my requrirment bacause have done many change on them. i know problem due to auto post back =true .now i solved it