create 2 tables in one page using data tables, not working

create 2 tables in one page using data tables, not working

jeddatjeddat Posts: 1Questions: 1Answers: 0

`

... ..
...

<

script>
$(document).ready(function() {
$('table.display').dataTable();
} );</script
`

Answers

  • ApezdrApezdr Posts: 43Questions: 4Answers: 5

    I don't understand the question, I cant read the whole title without looking in the url of this page. Can you provide more detail here?

  • F12MagicF12Magic Posts: 109Questions: 0Answers: 28

    There indeed isn't much information in the question. Seeing the little info provided, you'll need to give each table a unique id.

    $(document).ready(function() {
        $('#table1').dataTable();
        $('#table2').dataTable();
    } );
    
This discussion has been closed.