Responsive multiple DataTable initializing not working
Responsive multiple DataTable initializing not working
myoko
Posts: 2Questions: 2Answers: 0
I am using Bootstrap Tab Content (with 2 page) to load 2 tables and initialize using following method.
The table tag :
<table class="table dt-responsive nowrap myTable" cellspacing="0" width="100%" id="">
</table>
Javascript:
$(document).ready(function () {
$('table.myTable').DataTable({
responsive: true
});
})
Apparently, only the first table is working.
How to fix that?
This discussion has been closed.
Answers
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