I have two ASP.NET dropdownlists on my web page.The second one is disabled by default. Can anyone of you guide me to a javascript code which will enable the second dropdownlist when the selected index in the first one is "4", a clientside trigger ofcourse but i cant seem to figure it out.
I have tried the following:
function ddlstClick() {
if (document.getElementById("<%=ddlst_ParameterType.ClientID %>").selectedindex = "4") {
ddlst_pulldownParameters.Enabled = true;
}