...

View Full Version : Javascript and CSS inline



dark0s
06-08-2010, 03:35 PM
I have following HTML code:


<br/>
<div style="display:none">.....</div>
<div style="display:none">.....</div>

How can I modify display to block in style attribute with Javascript?

Kor
06-08-2010, 03:41 PM
How can I modify display to block in style attribute with Javascript?
How to modify when?

You must call a function which will refer those elements and give them a display block. The schematic code to change the display is:


element.style.display='block';

But you must first refer somehow that/those element(s), and for that you must isolate/group that/those element(s) somehow. Do you know JavaScript language, after all?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum