| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Nooneknow
Join Date: Nov 2004
Location: CA, USA
Posts: 38
|
disabled element not grayed out in IE
I'm new to javascript, and recently trying to validate a form. When using "disabled" IE doesn't gray out the disabled field while FF grays it out, as in below. How to make it work in IE? Code:
|
|
|
|
|
|
#2 (permalink) |
|
For all your goober needs
Join Date: Dec 2004
Location: Coventry, UK
Posts: 1,531
|
this is just a guess, but shouldn't it be document.formName.fieldName.disabled.value = disabled; like I say I could well be talking out of my arse. Time is really the only capital that any human being has, and the one thing that he can’t afford to lose. - Thomas Edison
prem ghinde |
|
|
|
#3 (permalink) | |
|
hmmm...
Join Date: Jan 2004
Location: Yorkuk
Posts: 2,127
|
Quote:
That you are. As far as I know the only visual indication in a text field is a greying of the text, so an empty field will look exactly the same. Give it a class at the same time and you'll be able to style it differently. |
|
|
![]() |