This is the image of the HTML with the table
I’m trying to access the innerHTML of the td’s in tr class ‘odd newbook-center’
Tried all kinds of requests but none work
function test() {
return document.querySelector('.odd newbook-center td')[1].innerHTML;
}
function test() {
return document.querySelectorAll('odd newbook-center td')[2].innerText;
}
function test() {
return document.querySelectorAll('.odd newbook-center td')[2].innerText;
}
function test() {
return document.querySelector('pretty_table')[2].innerHTML;
}
function test() {
return document.querySelector('tr.odd newbook-center td:nth-child(1)').textContent;
}
etc etc etc
Can anyone give me some guidance?