Hi,
I have two drop down lists on a page. The behavior is as follows:
- select something in list 1
- list 2 is enabled
- select something in list 2
- button is enabled
I am doing the above with autopostback enabled on the drop down lists. To toggle the button I use the code below:
if (ddlAvailablePrograms.SelectedValue != string.Empty)
{
careerInfoLearnMoreSubmit.Enabled = true;
careerInfoLearnMoreSubmit.Style.Remove("opacity");
careerInfoLearnMoreSubmit.Style.Add("opacity", "1.0;");
}
else
{
careerInfoLearnMoreSubmit.Enabled = false;
careerInfoLearnMoreSubmit.Style.Remove("opacity");
careerInfoLearnMoreSubmit.Style.Add("opacity", "0.5;");
}
This works fine in Firefox but in IE as soon as I make a selection in the first drop down list the button looses its greyed out style.
Any suggestions how to fix this in IE?
Thanks,
b3n