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

186
Views
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 answers
Answer question

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 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!