I've got this line of code and I was expecting it to hide all elements on my webpage with an id of 'nav', however it only hides the first element and ignores the others. How do I get it to apply the style to all 'nav' elements?
- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments
Code:
document.getElementById('nav').style.display = 'none';
- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments