How do I change the style (color) of a div such as the following?
"<div id=foo class="ed" style="display: <%= ((foo.isTrue) ? string.Empty : "none") %>"> <%= ((foo.isTrue) ? foo.Name: "false foo") %>"`
Generally, you can do it directly
document.getElementById("myDiv").style.color = "red";
There's a reference here.