Hello... I got confused...
Hello... I got confused...
In my table, the class="display" is only applied to the first column... And I don't know why... I mean the stripes, the hover is only applied to the first column. I had this code.
HTML:
<
table width="879" class="display" id="table_id">
<thead>
<tr>
<th>Training</th>
<th>Description</th>
</tr>
<thead>
<tbody>
<?php
$result = mysql_query("SELECT * FROM training_log_db.traininglist");
while($row = mysql_fetch_array($result))
{
echo
"<tr>";
echo "<td>" . $row['training']."</td>";
echo "<td>" . $row['description']."</td>";
echo"</tr>";
}
echo"</tbody>";
echo"</table>";
?>
<link rel="stylesheet" type="text/css" href="css/plugins/jquery.dataTables.css">
<script type="text/javascript" charset="utf8" src="js/plugins/dataTables/jquery.dataTables.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready( function ()
{
$('#table_id').dataTable(
{
"bFilter": false
} );
} );
</script>
I hope you can help me.
Thanks! :)
God Bless! :D
Answers
Oh.. I just discovered! The class="display" only applies to the selected column... When I click on a column name, only to that column applies the class="display"