Is it possible to change the content of a sortable header cell?

Is it possible to change the content of a sortable header cell?

frequentfrequent Posts: 23Questions: 0Answers: 0
edited February 2012 in DataTables 1.9
On my sortable columns I want to replace the column text with a html-button.

Doing this:

$( oSettings.aoColumns[i].nTh).text();

I can retrieve the cell text of the respective column, which I'm using as my button text.

However doing this:

$( oSettings.aoColumns[i].nTh).text("some text");
$( oSettings.aoColumns[i].nTh).html("some text");

does not do anything :-(

Is it possible at all to modify the content of a sortable header cell? Some pointers would be really helpful.

Thanks!

Replies

This discussion has been closed.