multiple dataTables in for loop - django templates
multiple dataTables in for loop - django templates
Hello:
I'm trying to create multiple tables on a single page
I already look at http://datatables.net/examples/basic_init/multiple_tables.html
and added:
[code]
$(document).ready(function() {
$('.dataTable').dataTable();
} );
[/code]
but its not working for me, as it shows sorting, paging, ets for first table and nothing for the rest of the tables!
my code looks like:
[code]
{% for a in "1234" %}
Hello World
Name
Region
Peter
Bay
{% endfor %}
[/code]
I'm trying to create multiple tables on a single page
I already look at http://datatables.net/examples/basic_init/multiple_tables.html
and added:
[code]
$(document).ready(function() {
$('.dataTable').dataTable();
} );
[/code]
but its not working for me, as it shows sorting, paging, ets for first table and nothing for the rest of the tables!
my code looks like:
[code]
{% for a in "1234" %}
Hello World
Name
Region
Peter
Bay
{% endfor %}
[/code]
This discussion has been closed.