Theoretically, the following CSS should select all disabled input items and
set their text to black:
input [disabled] { color: #000; }I'm pretty sure that the brackets notation is a CSS-3 selector, which means it *might* work in Mozilla and IE5/Mac but won't in IE6/Win, which only has CSS-1 and some -2 support. But it's worth a try. Wade on 8/21/02 5:19 AM, Kuminda Chandimith at [EMAIL PROTECTED] wrote: > Hi All > > We have a set of forms which we used to Add, modify and View records. Based > on the operations mode we are controlling the way each form is Displayed. > > When it comes to View mode we use a JavaScript to disable all the fields. > Everything works fine except that customer complains that all the content in > the input fields not easy to view because of the grey text. > > One option I have to overcome this is to re-do all the pages to display > simple Text instead of the greyed Input. Which is not a very attractive > thing considering we have close to 50 pages that need this adjustment. > > So I am thinking whether its possible to set the Colours of a disabled input > using java script or CSS. (A tag like HOver: where the display changes based > on the State of The Input Item.). If so can any one of you advise me how to > do the same. > > Best regards > > Kuminda > > > > Kuminda Chandimith > Sr. Technical Consultant > Ducont.com FZ-LLC > Tel: + 971-4-3913000 Ext 237 > Fax: +971-4-3913001 > http://www.ducont.com > --- You are currently subscribed to activeserverpages as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED]
