Forum Moderators: not2easy
Can it be done with CSS? as i dont really want to use JavaScript.
Thanx for any advice.
display: none; #to hide an item and give it no position;
visibility: hidden; #to hide an item but leave it on its place;
with: diplay: block/inline/auto(?) or visibility visible you can make it visible..
but the switch has to me made in js, this can be done without reloading a page..
function hideElement(i) {
var e = document.getElementById(i);
if (e) {
e.style.visibility = 'hidden';
}
}
function showElement(i) {
var e = document.getElementById(i);
if (e) {
e.style.visibility = 'visible';
}
}
use it on a link, <a href="javascript:hideElement(the id of the element you want to hide">hide ding</a>