DataTables-FixedHeader-KeyTable

Example of FixedHeader failing to work when also using KeyTable Extension.

by Brett Reynolds

HTML

<script src="//cdn.datatables.net/1.10.9/js/jquery.dataTables.min.js"></script>
<script src="//cdn.datatables.net/fixedheader/3.0.0/js/dataTables.fixedHeader.min.js"></script>
<script src="//cdn.datatables.net/keytable/2.0.0/js/dataTables.keyTable.min.js"></script>
<link rel="stylesheet" href="//cdn.datatables.net/1.10.9/css/jquery.dataTables.min.css">
<link rel="stylesheet" href="//cdn.datatables.net/fixedheader/3.0.0/css/fixedHeader.dataTables.min.css">
<link rel="stylesheet" href="//cdn.datatables.net/keytable/2.0.0/css/keyTable.dataTables.min.css">
<div class="content-page">
    <div class="content">
        <div class="container-fluid">
            <div class="col-md-12" id="table-div">
                <div class="table-responsive">
                    <table id="example" class="display" cellspacing="0" width="100%">
                        <thead>
                            <tr>
                                <th>Name</th>
                                <th>Position</th>
                                <th>Office</th>
                                <th>Age</th>
                                <th>Start date</th>
                                <th>Salary</th>
                            </tr>
                        </thead>
                        <tfoot>
                            <tr>
                                <th>Name</th>
                                <th>Position</th>
                                <th>Office</th>
                                <th>Age</th>
                                <th>Start date</th>
                                <th>Salary</th>
                            </tr>
                        </tfoot>
                        <tbody>
                            <tr>
                                <td>Tiger Nixon</td>
                                <td>System Architect</td>
                                <td>Edinburgh</td>
                                <td>61</td>
                               ...

JavaScript

$(document).ready(function () {
    $('#example').DataTable({
        fixedHeader: true,
        keys: true
    });
});