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

299
Vistas
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
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