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

202
Views
no se pueden representar los valores de la matriz (jquery)

oye, no puedo representar todos mis valores. obtuve nombres (botón) si hago clic en estos, mostraré la matriz detrás de él. si uso .append(), los renderizará todos, pero cuando vuelva a hacer clic, no se actualizará y se apilará. lo que quiero usar es algo como .text() o .html(). pero no puedo encontrar el problema, devolverá siempre el primero en la matriz y los otros valores no se muestran.

 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

Parece que no los está agregando, sino que los está sobrescribiendo.

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

debe agregar cada uno al html preexistente.

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!