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

150
Views
I'm trying to close several opened layer popups in sequence with esc. What should I do?

I'm trying to close several opened layer popups in sequence with esc. What should I do?

The currently applied source is as follows. When you press esc on the keyboard, it is clicked on the close button of the layer popup to close it.

$(document).on('keyup', function(e) {
  if (e.key == "Escape") $('.window .close').click();
});
about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

maybe like this?? I can't see all the code so this might work

$(document).on('keyup', function(e) {
  if (e.key == "Escape") $('.close').click();
  $('your_popup_ids').hide();  / / you can also use .toggle
});

about 4 years ago · Santiago Gelvez 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!