Fixed header/footer not working?
Fixed header/footer not working?
Hello everyone;
I want to add fixed header and footer like this link (https://datatables.net/extensions/fixedheader/examples/options/header_footer.html) . I implement all steps, but header/footer cannot be fixed. Any suggestions?
I added this code
$(document).ready(function() {
var table = $('#example').DataTable( {
fixedHeader: {
header: true,
footer: true
}
} );
} )
I added this script
https://code.jquery.com/jquery-3.3.1.js
https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js
https://cdn.datatables.net/fixedheader/3.1.5/js/dataTables.fixedHeader.min.js
https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css
https://cdn.datatables.net/fixedheader/3.1.5/css/fixedHeader.dataTables.min.css
This question has an accepted answers - jump to answer
Answers
You code works in this example:
http://live.datatables.net/gemediwu/1/edit
Maybe you can update the example to replicate your issue.
Kevin
Thank you so much Kevin. Your comment is very helpful. i did what i want thansk to you.