Aug 16, 2013, 8:23 PM
[CLOSED] Setting Disabled CSS in Textarea
Hello:
I have a textarea that I want to set as a different color when its disabled. I have a radio button that will set the textarea to disabled or enabled. However, the css I am using is not turning the text area grey. Am I using the wrong CSS?
Chris
I have a textarea that I want to set as a different color when its disabled. I have a radio button that will set the textarea to disabled or enabled. However, the css I am using is not turning the text area grey. Am I using the wrong CSS?
<style type="text/css">
.disabled-class input, x-form-textarea {
background-image: none;
background-color: #EBEBEB;
}
.label-cls
{
font-weight: bold;
color: rgb(84, 48, 26);
}
.my-button-style .x-btn-inner
{
font-weight: bold;
}
a:link {color:#0000FF;} /* unvisited link */
a:visited {color:#0000FF;} /* visited link */
a:hover {color:#0000FF;} /* mouse over link */
a:active {color:#0000FF;} /* selected link */
</style>
<ext:TextArea LabelWidth="250" runat="server" ID="Parameters" FieldLabel="Parameters for the targeted audience"
Height="100" EnforceMaxLength="true" MaxLength="500" Width="700" Margins="10 0 0 0" AllowBlank="false"
Note="i.e. Location, LOB, Management Hierarchy, Job Title, Job Code, or Employment Type" DisabledCls="disabled-class" Disabled="true" />
protected void DistributionMethodChange(object sender, DirectEventArgs e)
{
if (DistributionMethodTargetedEmail.Checked)
{
TargetedSidFile.Reset();
TargetedSidFile.Disable();
TargetedSidFile.AllowBlank = true;
Parameters.Enable();
Parameters.AllowBlank = false;
}
else if (DistributionMethodPreDefinedSids.Checked)
{
TargetedSidFile.Enable();
TargetedSidFile.IndicatorTip = "Required Field";
TargetedSidFile.AllowBlank = false;
Parameters.Disable();
Parameters.AllowBlank = true;
Parameters.Text = "";
}
}
Thanks,Chris
Last edited by Baidaly; Aug 17, 2013 at 12:46 PM.
Reason: [CLOSED]