oTable.$('th').attr('scope', 'row');
I do not know of a way to change the first column from a td to a th.
I am assuming that what you mean that every cell in the column would be effected means that every row's first column would be a <th scope='row'>.
var table = $('#example').dataTable{ {
"sAjaxSource": "ajax",
"aoColumnDefs": [
{
"aTargets": [0],
"sCellType": "th",
"fnCreatedCell": function ( cell ) {
cell.scope = 'row';
}
}
]
} );
table.$('th').attr('scope', 'row');
It looks like you're new here. If you want to get involved, click one of these buttons!
Get useful and friendly help straight from the source.