multiple dataTables in for loop - django templates

multiple dataTables in for loop - django templates

peter007peter007 Posts: 8Questions: 0Answers: 0
edited February 2013 in General
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]
This discussion has been closed.