my datatable is not working...pls help..here is my code

my datatable is not working...pls help..here is my code

butch30butch30 Posts: 2Questions: 0Answers: 0

<!DOCTYPE html>
<html lang="en">
<head>

<link href='http://cdn.datatables.net/1.10.12/css/jquery.dataTables.min.css' rel='stylesheet' />

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

</head>
<body>
<table id="test" class="display">
<thead >
<tr >
<th><strong>Course Number</strong></th>
<th><strong>Course Title</strong></th>
<th><strong>Units</strong></th>
<th><strong>Accounting Units</strong></th>

        </tr>
    </thead>
    <tbody>
        <tr>
            <td>ENG100</td>
            <td>Communication arts 1</td>
            <td>3</td>
            <td>3</td>
        </tr>
        <tr>
            <td>ENGL101</td>
            <td>Communication arts 2</td>
            <td>3</td>
            <td>3</td>
        </tr>
        <tr>
            <td>bsit121</td>
            <td>Reading and Speech</td>
            <td>3</td>
            <td>3</td>
        </tr>
        <tr>
            <td>bsit100</td>
            <td>Communication arts 1</td>
            <td>3</td>
            <td>3</td>
        </tr>

        <tr>
            <td>relb100</td>
            <td>Life of teaching of Jesus</td>
            <td>3</td>
            <td>3</td>
        </tr>
        <tr>
            <td>fili100</td>
            <td>Sining ng komunikasyon</td>
            <td>3</td>
            <td>3</td>
        </tr>
        <tr>
            <td>fili101</td>
            <td>Pagbasa at pagsulat</td>
            <td>3</td>
            <td>3</td>
        </tr>
    </tbody>
    </table>



</body>

</html>

Replies

  • butch30butch30 Posts: 2Questions: 0Answers: 0

    i have this code in header part..
    <link href='http://cdn.datatables.net/1.10.12/css/jquery.dataTables.min.css' rel='stylesheet'>

  • allanallan Posts: 61,867Questions: 1Answers: 10,137 Site admin

    Thanks for your question - however, per the forum rules can you link to a test case showing the issue please. This will allow the issue to be debugged.

    Information on how to create a test page, if you can't provide a link to your own page can be found here.

    Thanks,
    Allan

This discussion has been closed.