+ 1
why this code cannot change the color of the text?
<div id="demo" style="width:200px">some text</div> <script> var x = document.getElementById("demo"); x.style.color = "6600FF"; x.style.width = "100px"; </script>
1 Answer
<div id="demo" style="width:200px">some text</div> <script> var x = document.getElementById("demo"); x.style.color = "6600FF"; x.style.width = "100px"; </script>