Garoto Piranha
Garoto Piranha

Reputation: 11

get all rows of a pagination table

I'm using datatable in bootstrap4 and I've a pagination table (10 itens per pag). I made a function to get values in table, but when I tring to get all rows values, I've one problem because I only get the values show in a screen. I tryed used in js , document.getElementById("myTable).tBodies[0].rows; and tried Jquery but always I get only the values in screen. Has anyone had such a problem?

Upvotes: 0

Views: 3012

Answers (1)

Garoto Piranha
Garoto Piranha

Reputation: 11

I used $('#table').DataTable().data().row() ; and it works but when I iterate this bring me a values like a "innerHTML" but I have functions in a rows(), so I need get values like a "innerText" because this is a values show in screen.

Thanks guys, I appreciate your help.

Upvotes: 1

Related Questions