I'm having problems changing the css in javascript. Here's what i tried making:
<style id="1">
body {
background-color: pink;
}
</style>
<script>
var myVar = document.getElementById("1").style.backgroundColor = "brown";
</script>
The css is working, it is making the background pink, but the javascript isn't changing the css background color to brown.