function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DannyK89DannyK89 

InputText not showing put right on Internet Explorer

I am trying to put an inputText field that is disabled on a visualforce page. I have put some style attributes on the field that make it look like a regulart inputText field on google chrome and fireFox. I wanted the fields to have bolded Text and have a white background. The style attributes worked on chrome and firefox but not IE. When I Enable the inputText field the text is bolded. I would like to have it where the text is bolded and the inputText field is disabled. Can someone please help me out.

 

Thanks,

 

<apex:inputText label="Gross Margin" disabled="true" value="{!GrossString}" style="color:black; font-weight:bold; border:1px solid #AEAEAE; background-color:white;"/>

 

Best Answer chosen by Admin (Salesforce Developers) 
DannyK89DannyK89

I found something that works. It might be the best way to do it but it works for me.

 

<input type="text" value="{!GrossString}" readonly="readonly" style="color:black; font-weight:bold; border:1px solid #AEAEAE; background-color:white;"/>