BubikolRamios
09-04-2008, 08:20 AM
at one point I do:
// if bla bla show one of elements
document.getElementById("textA").style.visibility = 'visible';
How to set back css state as declared in below css. The aim is to hide back all elemnts as they were at start. Don't like idea finding them by id ...
css
#columnA div div
{
visibility:hidden;
}
<div id = "columnA">
<div>
<div id = 'textA'>
some text
</div>
<div id = 'textB'>
some text
</div>
<div id = 'textX">
....
</div>
</div>
</div>
// if bla bla show one of elements
document.getElementById("textA").style.visibility = 'visible';
How to set back css state as declared in below css. The aim is to hide back all elemnts as they were at start. Don't like idea finding them by id ...
css
#columnA div div
{
visibility:hidden;
}
<div id = "columnA">
<div>
<div id = 'textA'>
some text
</div>
<div id = 'textB'>
some text
</div>
<div id = 'textX">
....
</div>
</div>
</div>