Javascript won't overwrite CSS display property.
Posted
by
Sorin Buturugeanu
on Stack Overflow
See other posts from Stack Overflow
or by Sorin Buturugeanu
Published on 2011-01-01T23:33:08Z
Indexed on
2011/01/01
23:54 UTC
Read the original article
Hit count: 369
JavaScript
|css
I have a DIV that is set do display:none from CSS and it's supposed to be made visible (style.display = '';
) at some point by javascript.
The problem is that if I put the display:none
in the CSS file the javascript does not seem to have any effect. I have also tried changing the background color instead of the display property, and that works.
I have the code running here (just press the edit link).
I really thank you for taking the time to look into this.
© Stack Overflow or respective owner