1
I’m trying to make an HTML table selectable, when I try to get the table rows by getElementsByTagName()
, is returning different values when reloading the page.
My Table:
Javascript:
var tabela = document.getElementById("listSensors");
var linhas = tabela.getElementsByTagName("tr");
console.log(linhas);
console.log(linhas.length);
Returns:
It seems to me it’s something to do with running time, some suggestion to resolve?
About HTML, avoid posting code image. Prefer to post the code in the question. In this link you will understand why :)
– Ronaldo Araújo Alves