What is the very simple using file of DataTables?

What is the very simple using file of DataTables?

MucipMucip Posts: 1Questions: 1Answers: 0

Hi,
I just realized your code and wanted to use it. I am very new and wrote below code from your website but did not get the result. Ony data tables and rows unfortunatelly.

My very simple code is:

<link rel="stylesheet" type="text/css" href="/DataTables/datatables.css">
<link rel="stylesheet" type="text/css" href="/DataTables/jquery.dataTables.min.css.css">
 
<script type="text/javascript" charset="utf8" src="/DataTables/datatables.js"></script>
<script type="text/javascript" charset="utf8" src="/DataTables/jquery-3.5.1.js"></script>
<script type="text/javascript" charset="utf8" src="/DataTables/jquery.dataTables.min"></script>



<head>

<script type="text/javascript">

$(document).ready( function () {
    $('#example').DataTable();
} );


</script>

</head>

<body>




<table id="example" class="display" style="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>
        <tbody>
            <tr>
                <td>Tiger Nixon</td>
                <td>System Architect</td>
                <td>Edinburgh</td>
                <td>61</td>
                <td>2011/04/25</td>
                <td>$320,800</td>
            </tr>
            <tr>
                <td>Garrett Winters</td>
                <td>Accountant</td>
                <td>Tokyo</td>
                <td>63</td>
                <td>2011/07/25</td>
                <td>$170,750</td>
            </tr>
            <tr>
                <td>Ashton Cox</td>
                <td>Junior Technical Author</td>
                <td>San Francisco</td>
                <td>66</td>
                <td>2009/01/12</td>
                <td>$86,000</td>
            </tr>
            <tr>
                <td>Donna Snider</td>
                <td>Customer Support</td>
                <td>New York</td>
                <td>27</td>
                <td>2011/01/25</td>
                <td>$112,000</td>
            </tr>
        </tbody>
        <tfoot>
            <tr>
                <th>Name</th>
                <th>Position</th>
                <th>Office</th>
                <th>Age</th>
                <th>Start date</th>
                <th>Salary</th>
            </tr>
        </tfoot>
    </table>


    </body>
</html>

Where am I wrong? Could you help me please?

Regards,
Mucip:)

Answers

This discussion has been closed.