Just getting to grips with javascript and jquery
I am setting backgroundColor of a table cell based on its value. 
 $("td.ms-vb2").filter(function(index){return $(this).text() === "Yes";}).css("backgroundColor", "#81F79F");
 $("td.ms-vb2").filter(function(index){return $(this).text() === "No";}).css("backgroundColor", "#FE642E");
Could someone tell me how I would be able write an if-else statement where if the color is #81F79F do an alert and if the color is #FE642E, do another alert
OR
if the value in the cell is Yes do an alert and if the value in the cell is No, do another alert
Many thanks
 
     
     
     
     
    