How do I change the color of the value displayed in a table with different colors, if urgent
then text color red for an example? Its a value from the back-end.
Javascript
var priority = objs[i].priority;
switch(objs[i].priority)
{
case '1': priority = "Urgent"; break;
case '2': priority = "Major"; break;
}
tr.find(".td_priority").text(priority);