Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

191
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda