Hi everyone,
I have been using a script to toggle the visibility (via the "display"
property) of a specific ID hence a single elemnt on a page using
document.getElementById:
function ToggleIDvis() {
if (!document.getElementById) return false;
var targetIDvis = document.getElementById("hidden");
if (targetIDvis.style.display == "block") {
targetIDvis.style.display = "none";
} else {
targetIDvis.style.display = "block";
}
}
Now I would like to toggle the visibility of multiple elements on the
page and I'm wondering if there's a way to get those elements by a
certain class name.
Any hints are very much appreciated!
Cheers Martin
--
To reply by e-mail remove the "waste bin".