Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

125
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda