I think this is a great new feature in CRM 2011. Please refer to the following article that describes how to do this:
http://support.microsoft.com/kb/2500602
http://support.microsoft.com/kb/2500602
function setColor() {
if (document.getElementById("new_name") != null) {
//Add the below line if the field is disabled
document.getElementById("new_name").disabled = false;
//The below line changes the font color
document.getElementById("new_name").style.color = "red";
}
}
Note: Accessing the DOM as shown above is totally unsupported. I had to use the above method since I was not able to find any supported way of achieving this functionality