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

166
Views
¿Por qué el acordeón no funciona en este caso?

Traté de hacer un acordeón usando HTML, CSS y JavaScript. El HTML y el CSS funcionan bien, pero la implementación de JavaScript no funciona. ¿Alguien me puede ayudar?

Los archivos están aquí: https://drive.google.com/drive/folders/1nzEyyU_4QA4x_qh1QE_rz3V3DD_r7PAv?usp=sharing

No puedo agregar fragmentos de código porque el desbordamiento de la pila no me permite enviar la pregunta.

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

0

Aquí hay un guión de trabajo para usted. Reemplace esto con su javascript.

Ejemplo de trabajo que hice en Codepen: https://codepen.io/9to5disappear/pen/jOYBJJp

JavaScript:

 'use strict' let label = document.getElementsByClassName('label'); let content = label.nextElementSibling; const elements = document.querySelectorAll('.content'); Array.from(elements).forEach((element, index) => { element.parentElement.addEventListener('click', () => { element.classList.toggle('content-visible'); }) });
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!