Answers

Dec 28, 2006 - 06:27 AM
This is the content of a textarea Hope this helps!Ric

Dec 28, 2006 - 06:44 AM
abcdef

Dec 28, 2006 - 06:59 AM
for the background you can add this line to my disable_controls() routine
after
elem.disabled = state ;
insert
elem.style.backgroundColor = state?"yellow":"white" ;

Jan 04, 2007 - 11:47 AM
why do you bash using CSS when your "elem.style.backgroundColor = state?"yellow":"white";" does effectively the same thing?
My impression was that David needs to set the disabled state of a field programmatically, and could use the following:
function Disable(id) {
var ctrl = document.getElementById(id);
ctrl.disabled = false;
ctrl.style.class = "";
}
My apologies if I took your comments harshly and incorrectly, mate.
ric

Jan 04, 2007 - 08:59 PM
You're right, ric, that what I needed was to disable/enable the fields programatically. And your suggestion about using a "disabled" class is the one I ended up using, although I was initially hoping that there were a css-property i could use instead, like a:hover...
So I'll live with this solution and perhaps in CSS3 and when the browsers support that in 2020... :)

Aug 07, 2007 - 10:50 AM
input[disabled], input[readonly], select[disabled], select[readonly], checkbox[disabled], checkbox[readonly], textarea[disabled], textarea[readonly]
{
background-color: #dcdcdc;
border: #3532ff 1px solid;
color: #000000;
cursor: default;
}

May 23, 2008 - 06:55 PM
http://www.css-lessons.ucoz.com/textb...

Jun 01, 2010 - 08:38 AM
{
background-color: #dcdcdc;
border: #3532ff 1px solid;
color: #000000;
cursor: default;
}
Doesn't work in IE

Nov 24, 2010 - 12:00 AM

Dec 28, 2010 - 07:20 PM

Oct 11, 2014 - 09:09 AM
use this
</textarea>

Jan 08, 2015 - 01:39 AM
Add New Comment