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

110
Vistas
How to POST iterable data from tables

I have a table with some date in it:

        <tr class="unit-table'"> 
          <td><input type="text" name="" id="item"></td>
          <td><input type="text" name="" id="price"></td>
          <td><input type="text" name="" id="qty"></td>
          <td><input type="text" name="" id="disc"></td>
        </tr> 

User can add new rows to this table. I'm using Fetch API to post this data. The response from API am trying to post is looks like this

 "computer_and_infrastructure": [
            {
                "item": "Computer Support",
                "unit_price": 30,
                "qty": 5,
                "discount": 0
            }
        ]

My question is how can I loop through all table data and add it to my request?

about 4 years ago · Juan Pablo Isaza
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