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

266
Vistas
How to trigger a list according to input text with javascript or jquery?

I have a js for auto fill a form. But when i fill form i need to click input and press any key to trigger list which is related with card number.

Example: when page loaded all areas filling automated

when page loaded all data are filling by javascript. But installemens is no seeing till i click and press any button to card number area.

when i click card number area and press ANY key in keyboard, the result is : real press trigger list

So how can i trigger this list with JS, or how can i simulate click card number area then simulate organic press with js, or anything else for solution. Any advice will be accepted :)

Edit: ofcourse tried;

document.getElementById('elementID').click();

or Is it possible to simulate key press events programmatically?

these solutions not working on my problem :(

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

to simulate a key press you can do a simple:

var e = jQuery.Event("keydown");
e.which = 78; // n code value
e.altKey = true; // Alt key pressed
$("#inputBox").trigger(e);
about 4 years ago · Juan Pablo Isaza Denunciar
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