Hi ,
I have Custom List called Student, it has a field called "Status',this filed has a drop down list Contains Red,Green and Yellow.
If i select Red then background should become Red
If i select Green then background should become Green
If i select Yellow then background should become Yellow
How can i do that.Please help me?
SharePoint Custom List Field Color:
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Sagar PardeshiRank #103 · 20.8K reputationPosted Jan 13, 2014, 12:20 AM EST
Add Content editor in your form
Brijendra GautamRank #1,900 · 778 reputationPosted Mar 16, 2014, 9:35 PM EDT
Just pass the index of your column in eq.
$(document).ready(function(){
$(".ms-listviewtable tr").each(function(){
$(this).find("td:eq(4)").each(function(){
var color =this.innerHTML;
$(this).css("background-color",color);
});
});
});