Menu
Hello,
I have a number of divs with the same id. I’d like to be able to change the CSS class of all these divs at once.
This is what I have so far:
[CODE]function highlightTask(taskName)
{
// unset all active highlights
// highlight the selected task
document.getElementById(taskName).className = “graphBarHighlight”;
}
This only works for one div. After the class has been changed for the first div nothing happens!
Any ideas? I was thinking about some sort of loop using a count of the ids?
Many Thanks,
dai.hop