javascript - Datatable freezed header -


datatable fixed header when scrolling , down link

$(document).ready(function() {         $('#student_datatable').datatable( {             fixedheader: true,             scrollx: true,             bsort : false         } );     } ); 

fixedheader: true doesn't work. can me ?

the link fiddle in question has nothing datatables. uses css implement fixed header functionality regular html table. in case css useless.

for datatables use fixedheader plugin

first of need reference adding html(in case not included):

<script src="https://cdn.datatables.net/fixedheader/3.1.1/js/datatables.fixedheader.min.js"></script>  <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/fixedheader/3.1.1/css/fixedheader.datatables.min.css"> 

then

$('#student_datatable').datatable({     fixedheader: true }); 

will work expected (working fiddle)


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -