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

194
Views
can not render values of array (jquery)

hey i can not render all my values. i got names (button) if i click these i will render the array behind it. if i use .append() it will render all of them but when i click again it wil not refresh it and get stacked. what i want use is something like .text() or .html(). but i can not find the issue it wil return always the first one in the array and the other values are not showing.

 var treinen =$("#treinenArray0");
    var list = data.info[0].kwalificaties;
    $.each(list, function(index, value){
       treinen.html($('<li>'+ value + '</li>'));
    });
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You seem to be not appending them but instead overwriting them.

treinen.html(treinen.html() + '<li>'+ value + '</li>'));

should append each one to the pre-existing html.

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!