view raw
ihue ihue - 6 months ago 72
Javascript Question

DataTable Fixed Header Not Working

I have a table using datatables plug-in.

I'm trying to make my table header fixed, and follow this link : here

$('.device-table').DataTable( {
"fixedHeader": {
header: true,
"bLengthChange": false,
"Filter": false,
"Info": false,
} );

I don't see the effect.

I've included both js files of datatables and fixedHeader:

<script src=""></script>
<script src="" type="text/javascript"></script>


How would one go about and debug this ?

I'm opening to any suggestions at this moment.

Any hints / suggestions / helps on this be will be much appreciated !


For the fixedHeader plugin to work you also need the css file:

<link rel="stylesheet" type="text/css" href="">

Check this update: