how to put multiple jquery dataTables in one page?

前端 未结 9 1427
迷失自我
迷失自我 2020-12-09 03:22

I want to use jquery dataTables to show something.

It works well when i just put one dataTable in one page, then i add one more, but they occupied almost the same p

9条回答
  •  情话喂你
    2020-12-09 04:11

    $(document).ready(function() {
      $('table.display').DataTable();
    } );
    

    All three tables will be displayed as long as you give the right class

    <-- You wrote dataTable instead of DataTable-->

提交回复
热议问题