Hi - I have a page with a lot of divs which I'd like to hide, and then show just the one whose link I click.
The function is like this:
document.getElementById('findOnlyElementsWhoseIdBeginsWithStringXXX').style.visibility = 'hidden';
document.getElementById('container_' + selectedLayer).style.visibility = 'visible';
this would eliminate the need to separately hide each layer. How can I write the code so the getElementById returns all elements whose ID begins with 'mystring'?