While filtering does not apply changes to the table
While filtering does not apply changes to the table
drakula1234
Posts: 58Questions: 1Answers: 0
I am using fnRowCallback to highlight and make some modifications to the table. It works fine when I load the page, everything works as per the code. This is the following code I have
[code]
if(aData[17] != null) {
$('td:eq(0)', nRow).html("");
$(nRow).find('td:contains("edit")').html("edit");
$(nRow).css({'background-color':'#999999','color':'#E4E4E4', "cursor": "default"});
}
[/code]
When I enter text in the search field
[code]
$('td:eq(0)', nRow).html("");
$(nRow).find('td:contains("edit")').html("edit");
[/code]
do not seem to work. It would not replace the first column with the cancel icon, and also do not change the edit hyperlink to edit text. Is something wrong with my code or is there anything I am forgetting.
[code]
if(aData[17] != null) {
$('td:eq(0)', nRow).html("");
$(nRow).find('td:contains("edit")').html("edit");
$(nRow).css({'background-color':'#999999','color':'#E4E4E4', "cursor": "default"});
}
[/code]
When I enter text in the search field
[code]
$('td:eq(0)', nRow).html("");
$(nRow).find('td:contains("edit")').html("edit");
[/code]
do not seem to work. It would not replace the first column with the cancel icon, and also do not change the edit hyperlink to edit text. Is something wrong with my code or is there anything I am forgetting.
This discussion has been closed.