Can anyone help me with a JavaScript issue I'm having? I have a function that writes messages to the logs, but the text color is always blue. How can I change it? Here is my JavaScript code:
Thank you in advance for any assistance you can provide.
function logMessage(taskName, action, from, to)
{
var $logsDiv = jQuery("#logs");
var message = '';
if(action == "receive")
{
message = taskName +" was removed from '"+ from +"' and was added to '"+ to +"'<br/>";
jQuery("#logs").css("color","blue");
$logsDiv.append(message);
}
else
{
message = taskName +" was removed from '"+ from +"' and was added to '"+ to +"'<br/>";
jQuery("#logs").css("color","green");
$logsDiv.append(message);
}
}