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

147
Views
recorrer todos los elementos td en una tabla

¿Cómo recorrería todos los elementos td en una tabla? Necesito encontrar la identificación de cada td y compararla con un valor. ¡Cualquier ayuda sería realmente apreciada!

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Use jQuery.each para hacer un bucle de todos sus td:

 $("td").each(function() { var id = $(this).attr("id"); // compare id to what you want });
over 4 years ago · Santiago Trujillo Report

0

var all_td_in_a_table = $("#table-id td") ,

entonces puedes hacer un bucle

over 4 years ago · Santiago Trujillo Report

0

$('#tableId').find('tr').each(function () { $(this).find("td[id^='tdId']").each(function (i, item) { //do your task here }); });

O el efectivo es obtener primero todos los tds de la tabla

 var totalTdsInTable = $("#table-id td");

Ahora recorra totalTdsInTable

over 4 years ago · Santiago Trujillo Report
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!