Yes, I know the problem, as soon as You set the Background with JS, You get
this silly problem in IE.
document.getElementById(element).style.backgroundC olor='#FFFFCC';
Workaround is to define a stylesheet definition for all inputs.
INPUT, TEXTAREA, SELECT, OPTION {
border: 1px solid threedshadow;
}
Attention this causes checkboxes also to have a border unless You define a
special class for them to supress this:
..noBorder {border: none;}
Regards,
Michael
"Gary Homewood" <ga***********@hotmail.com> schrieb im Newsbeitrag
news:40***********************@lovejoy.zen.co.uk.. .
I have a form with some input text fields, and I am toggling them between
readOnly and enterable, using JavaScript. In Mozilla, when the input is
set to readOnly, the background is greyed out automatically, which is nice,
but not in IE. If I explicitly set the background color to grey with my
JavaScript, I get a 3D inset border style. I could explicitly set the
border style at the same time, but I don't know what I need to match whatever the
default is. Any ideas?
Thank you