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

131
Views
Dynamic table of Input fields is only giving first input

I have created a dynamic table using JS. Each cell of table contains input fields. I am performing arithmetic operations on input fields. The code is working fine for first input field. But whenever i try to access 2 and further input fields it still gives me result of first input. But it is only giving me result of first input field.

// var lastRow = $(this).closest("tr");
if ($(this).find('input').length) {
 
  if (equation[j] == $(tr).find('td:eq(0)').find('input[type="text"]').val()); {
   


    p2 = equation[j];
    var1[1] = $(tr).find('td:eq(1)').find('input[type="number"]').val();
    var2[1] = $(tr).find('td:eq(2)').find('input[type="text"]').val();
    

Any idea on how to access second and further fields.?

about 4 years ago · Santiago Gelvez
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!