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

255
Views
I want to get the value of checkbox using jQuery

In a table there are multiple rows, what I want is if I click on a particular name of user like "Sam" and "Adem" I want to get the value of checkbox which only relates to that row.

<thead>
  <tr>
    <td>Select</td>
    <td>Name</td>
    <td>Username</td>
    <td>Rank</td>
    <td>Address</td>
  </tr>
</thead>
<tbody>
  <tr>
    <td><input type="checkbox" name="" id="" value="1"></td>
    <td>Sam</td>
    <td>Sam001</td>
    <td>Admin</td>
    <td>XYZ</td>
  </tr>
  <tr>
    <td><input type="checkbox" name="" id="" value="2"></td>
    <td>Adem</td>
    <td>Adem002</td>
    <td>Manager</td>
    <td>ZYZ</td>
  </tr>
  <tr></tr>
  <tr></tr>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Attach click event on TD elements. In the handler find the checkbox using .parent() and .find() methods. When you have found the checkbox, get its value using .val() method.

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!