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

254
Views
El menú desplegable de javascript con addEventListener funciona con Firefox pero no con Chrome

Tengo una lista desplegable y, después de seleccionar un artículo, debe enumerar los productos en orden alfabético o por precio.

En firefox funciona correctamente, pero en chrome no se activa la option.addEventListener .

 const sortedBy = Array.from(document.querySelector('.order').options); sortedBy.forEach(option => { option.addEventListener('click', () => { switch (parseInt(option.value)) { case 0: newOrderHtml(priceLowToHigh); saleCheck(); break; case 1: newOrderHtml(priceHighToLow); saleCheck(); break; case 2: newOrderHtml(abcIncrease); saleCheck(); break; case 3: newOrderHtml(abcDecrease); saleCheck(); break; default: newOrderHtml(priceLowToHigh); saleCheck(); } }) })
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!