var stat=data[item].status;
var imgCls = "c"+stat;
$("-sharpimageState").attr("class", imgCls);
//var imgCls=$("-sharpimageState").attr("class")
if(imgCls==="c0"){
$(".worked").show();
}else if(imgCls==="c1"){
$(".hired").show();
}else if(imgCls==="c2"){
$(".commu").show();
}else{
$(".out").show();
}
Why doesn"t this work?