How do I change the style (color) of a div such as the following?
\"
Generally, you can do it directly
document.getElementById("myDiv").style.color = "red";
There's a reference here.