I've got these two CSS files in my head section:
<link href="css1.css" rel="stylesheet" type="text/css" />
<link id="css2" href="css2.css" rel="stylesheet" type="text/css" />
and this href:
<a href="#" onclick="document.getElementById('css2').href='css2.css'">Change</a>
The page is showing css2 (which has background-color set to green) but I want it to show css1(red), and then by clicking the css2 link it should change to css2.