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

143
Views
input value issues in javascript

I hav a google published csv sheet. I created a html table and want to display csv values from published csv sheet into all input fields inside html table.

due to a unspecified reason this question has been moved.

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

0

You can use Split() function https://www.w3schools.com/jsref/jsref_split.asp

let splitedResult = xmlhttp.responseText.split("\r"); 

You can assign the values to

element.value = splitedResult[0].trim();
element1.value = splitedResult[1].trim();

Check out this link for the implementation https://jsfiddle.net/SyamKumarD/xa49vspy/29/

I would suggest you to provide a iterable id to your table elements, so you don't need to hardcode the index to your split result and you can iterate through the element and assign the split value dynamically.

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!