I would like to recover the class of a specific column
Indeed I wish to count the number of unique class of a particular column
On the DataTables documentation, I found how to retrieve the data from a column :
var table = $('#myTable').DataTable({
"aaSorting": []
});
var nbr = table.column( 2 ).data().unique().count();
console.log (nbr)
But I do not find how to retrieve the class of a specific column
EDIT :
<table id="myTable">
<thead>
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
<th>Column 4</th>
<th>Column 5</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td class="867">Msg 1</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td class="867">Msg 2</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td class="1087">Msg 3</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td class="867">Msg 4</td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
In this example I should have the number 2 (for two distinct class) -- The class is added through a foreach (PHP)