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

297
Views
Jquery simulate key press tab

So what I need is, e.g I have a button, when it gets clicked, I wish it also to trigger a tab key press, so the focus will move to next element with tabindex=0

I have something like this, but not working:

var btnSkipMenu = $("#btnSkipMenu");
btnSkipMenu.click(function() {            
        var tabEvent = jQuery.Event("keydown");
        tabEvent.which = 9;
        this.trigger(tabEvent);  //so it should simulate key press tab, then focus move to next tabindex=0
    });

please advise with some code sample Thanks

about 4 years ago · Juan Pablo Isaza
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!