2016-03-07 113 views
1

我有一個特定行的Specfic列

樣式表格

enter image description here


我想

樣式的特定行的特定TD一張桌子。


我決定

遍歷每個row,每一行中,我遍歷每個td,並檢查是否是td等於一個我要檢查。


我試圖

$('#account-table').each(function() { 
    $(this).find('td').each(function() { 
     var td = $(this); 
     if(td.innerText == '[email protected]'){ 
     $(this).css('color','red'); 
     } 

    }); 
}); 

我不能讓該列的文字是紅色

任何提示/建議?

回答