So I want to set a CSS id to a different one when a user clicks a tab. I have all of my divisions as the layout for the site):\[code\]<a href="http://stackoverflow.com/questions/15686985/page.html"><div id="something"></div></a> <!-- this is one of my navigation tabs that I'll click on -->\[/code\]I want to modify this navigation tab:\[code\]<a href="http://stackoverflow.com/questions/15686985/page2.html"><div id="something2"></div></a>\[/code\]I want to change the division id to "something3" (and that "something3" is already defined in my CSS)Also, I want to change the link to "page3.html" (already existing in my folder). So my question is, how do I change both of those things using javascript?I already have:\[code\]function changeTab () { if (document.getElementById('something').clicked) { // change the css and link }}\[/code\]I'd appreciate it if anyone would help out.