Ajax response display

Ajax response display

I am trying to style the response of my ajax call (xml) which is displayed in table. on applying switch statement to the table to change the  style of some <td> which has the values; 'pass' ; 'fail'. I found out the last <td> of each result table  is always not responsive to the the styling.
  switch (Valid) {
                    case 'yes':
                        $(".highlight").html('<img src="img/validgreen.png"/>');
                        break;
                    case 'no':
                        $(".highlight").html('<img src="img/expiredRed.png"/>');
                        break;
                    default:
                        $(".highlight").html('N/A');
                }
I have also used if , if/else statement. I get the same result.