
Originally Posted by
fmx250
in my daten.php i will hidden a div with following code:
document.getElementById('daten_allgemein').style.visibility = 'visible';
and the id of the div is daten_allgemein.
does someone know what i have done wrong?
That's wrong. To hide a div, you set the visibility property to hidden:
Code:
document.getElementById('daten_allgemein').style.visibility = 'hidden';
...but that would only hide the element from view, but the space to where the element is situated is still observable (at least as I would see).
You could try to use the display property instead:
Code:
document.getElementById('daten_allgemein').style.display = 'none';
Hope that helps.
Bookmarks