Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

175
Views
How can i get rows inside tab

before tabs worked correctly and i moved, then it doesn't work.

enter image description here

table with data enter image description here

code works before tabs

var tableCA = document.getElementById("myTable3"),
  val1t = 0;
val2t = 0;
val3t = 0;
val4t = 0;
val5t = 0;
val6t = 0;


for (var i = 1; i < tableCA.rows.length; i++) {
  if (tableCA.rows[i].cells[2].innerText == "CLÍNICA") {
    val1t = val1t + parseFloat(tableCA.rows[i].cells[7].innerHTML);
    val4t = val4t + parseFloat(tableCA.rows[i].cells[6].innerHTML);
  }
  if (tableCA.rows[i].cells[2].innerText == "QUIRÚRGICA") {
    val2t = val2t + parseFloat(tableCA.rows[i].cells[7].innerHTML);
    val5t = val5t + parseFloat(tableCA.rows[i].cells[6].innerHTML);
  }

  if (tableCA.rows[i].cells[2].innerText == "AYUDA AL DIAGNOSTICO Y TRATAMIENTO") {
    val3t = val3t + parseFloat(tableCA.rows[i].cells[7].innerHTML);
    val6t = val6t + parseFloat(tableCA.rows[i].cells[6].innerHTML);
  }
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!