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

183
Views
¿Cómo obtener el valor de un ID TR a partir del valor td?

Tengo estos datos en una tabla:

 Red Green Blue Yellow Pink Orange

Quiero mostrar una alerta como esta:

 alert($(this).closest('tr').find("Orange").text());

Pero no funciona.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

establecer un campo de identificación para cada tr como

 <tr id="1"> <td>Red</td> <td>Green</td> <td>Blue</td> </tr> <tr id="2"> <td>Yellow</td> <td>Pink</td> <td>Orange</td> </tr>

luego alert($(this).closest('tr').attr('id'));

about 4 years ago · Juan Pablo Isaza 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!