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

109
Views
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
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!