How can I access the information of other pages that is not visible in a table with javascript?

How can I access the information of other pages that is not visible in a table with javascript?

RMedinaRMedina Posts: 1Questions: 1Answers: 0

Hi guys, I have a question. I am implementing a table with datatables and I have a question. When making a filter in the input search of the table I want to be able to read all the information of all the pages with javascript to be able to add an amount, but with the javascript code when going through the tbody of the table it only goes through the first sheet with just the first 10 lines that it contains, I would like to be able to read all the pages even if they are not visible

This is what I am currently doing:

d.addEventListener('change', e=> {
if(e.target.getAttribute('type') == 'search'){
if($tbody.children.length > 0){
let netoSumar = 0
let saldoSumar = 0
for(i=0; i< $tbody.children.length; i++){
let valorSaldo = $tbody.children[i].children[8].textContent
}
}else{
console.log($tbody.children)
}
}
})

This question has accepted answers - jump to:

Answers

Sign In or Register to comment.