|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
assign css class in JS, not just a CSS property...
Is there no way I can replace
document.all.registration_password_length_error.style.visibility = 'hidden'; document.all.registration_password_length_error.style.display = 'none'; with document.all.registration_password_length_error.style.class= 'classname'; ?? When I try it I get object expected errors. |
|
#2
|
|||
|
|||
|
Instead of someElement.style.class, use:
someElement.className Hope this helps, Jeroen |
|
#3
|
||||
|
||||
|
damn, yeah it does. and doh me! thanks jerom. I should have put a bit more thought into that in the first palce
![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > assign css class in JS, not just a CSS property... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|