Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

188
Vistas
jquery a way to wait until a click command is finished

I want to launch this three commands sequencially :

  1. e.off('accordionchange')
  2. $(this).click()
  3. e.on('accordionchange', majIconeBtnTDrl)

I made this command with when and then in jquery for this purpose :

$.when(e.off('accordionchange'))
  .then($.when($(this).click())
  .then(e.on('accordionchange', majIconeBtnTDrl)));

it does not work

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The click method has no way to determine when all the event handlers (nor any asynchronous functions triggered by those event handlers) have completed.

The sort of problem you could solve with this type of approach would generally best be solved by avoiding interacting with the click event in the first place.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda