10
rated 0 times
[
16]
[
6]
/ answers: 1 / hits: 22440
/ 13 Years ago, thu, november 24, 2011, 12:00:00
Example:
<div class=test><img src=test.jpg style=display:none; /></div>
How to change that with javascript, I know in css its:
.test img {display:block;}
but in javascript I only know this:
document.getElementById(test).style.display=block;
thats obviously the whole div tag , not the img.
More From » javascript