Mastering Development

change stylesheet by button click for specific element only

So, this question is based on a piece of homework that I’m currently working on. I was provided with an HTML document and two stylesheets. The HTML document is really simple: <html> <head> <title>DOM-scripting: change style</title> <link rel=”stylesheet” href=”style/style1.css” id=”stylesheet”/> </head> <body> <nav class=”chooseStyle”> <input type=”button” id=”style1Button” value=”Style 1″/> <input type=”button” id=”style2Button” value=”Style 2″/> </nav> […]