3
I’m using the dataTables and in one of the columns I placed a input:checkbox
for the user to be able to mark all columns or uncheck, remembering that in the columns I have to sort, and in this column I also have this, because I need to know which items are already marked or not. So far everything is working.
What I’m not sure how to do is that when the user clicks on checkbox
do not sort, only do this sort when you click on the column itself. Today, when he clicks to mark or uncheck already makes the ordering, and that can’t happen.
The snippet I create of html is as follows::
<table id="datatables">
<thead>
<th>
<tr>Tema</tr>
<tr>Monitoramento</tr>
<tr><input type="checkbox"></tr>
</th>
</thead>
<tbody>
<tr>
<td>Alimentos</td>
<td>monitoramento alimentos 2</td>
<td><input type="checkbox"></td>
</tr>
<tr>
<td>Alimentos</td>
<td>monitoramento alimentos 3</td>
<td><input type="checkbox"></td>
</tr>
</tbody>
</table>
would you please post some snippet of your html code from the datatables?
– Silvio Andorinha
I already edit the question, but already commenting that it is an html of a common table.
– Marcelo Diniz