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

179
Views
escucha el conmutador de base en JS

He tenido un botón de cierre usando la base Toggler

https://get.foundation/sites/docs/toggler.html

¿Cómo en JS podría hacerle algo al DOM cuando se hace clic en el botón Cerrar?

He intentado algo como esto:

 function handleToggler() { console.log('closing the panel'); } window.addEventListener( 'on.zf.toggler', handleToggler, );

Pero esto no es.

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

0

Puede agregar un onclick al html:

 <a data-toggle="menuBar" onclick="yourFunctionHere()">Expand!</a>

Luego, simplemente acceda al nodo DOM al que desea hacer algo en la función:

 function yourFunctionHere(e){ const a_div = document.getElementById("a_div"); }
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!