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

93
Views
How to get those tr of a table containing a text_field with a certain value?

I have a table with several rows in which each td has a field, but I need to search for those tr containing the value "Egress" in a text_field. The value "Egress" is entered by the user and is not specified in the code.

I am trying something like this in coffeescript:

$('.payroll_novelties tr:has(.types[value="Egress"])').each ->

  cantidad = $(this).find("td:eq(4) input")
  valor = $(this).find("td:eq(5) input").val()

The code works for me but only if the value "egress" is in the code, but it does not work if it is typed by the user. How can I fix it?

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

0

I have found a solution as follows:

$('.payroll_novelties tr').each ->

  if $(this).find("td:eq(3) input").val() == "Egress"
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!