How to paginate the table structure formed by DIV tag

How to paginate the table structure formed by DIV tag

aravindtgaaravindtga Posts: 7Questions: 0Answers: 0
edited September 2012 in General
I am creating the table using DIV tag as follows;

[code]


user_id
user
role_id
first_name
mid_name
last_name
status
email
option


4
me
admin
A
B
C
Ax
abc@mail.com


[/code]

The table created correctly using the above code ..
How should i implement pagination for this.

Thanks in advance.....

Replies

  • allanallan Posts: 63,552Questions: 1Answers: 10,477 Site admin
    You cannot with DataTables. DataTables uses the TABLE tag as that it the correct tag for showing tables. See: http://datatables.net/usage/#prerequisites

    Allan
  • aravindtgaaravindtga Posts: 7Questions: 0Answers: 0
    Suggest me any other possible way to do this
  • allanallan Posts: 63,552Questions: 1Answers: 10,477 Site admin
    Use the correct markup :-). Tabular data should use the TABLE tag, while a DIV is meaningless. DataTables requires correct semantic markup, and that will not change.

    Allan
This discussion has been closed.