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

188
Views
How to get the value of an ID TR from td value?

I have this data in a table:

Red
Green
Blue


Yellow
Pink
Orange

I want to show an alert like this:

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

But it does not work.

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

0

set an id field for each tr like

<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>

then 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!