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

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

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