I have an input box with auto complete extender. I want to simulate the key press using jquery or javascript. The key press should actually open the auto complete popup.
I searched for simulating keypress using jquery and came up with these answers: 1) Simulate Keypress With jQuery 2) Simulating a Keypress Event from Javascript Console 3) JQuery simulating keypress event on an input field
All of these allow me to just simulate a single key in at a time. But what if I want to allow batch key events? For example, I want to directly key in "abcde" text in a single line of code without having to type in the key code of each character.
EDIT:
I am trying to simulate key press using google chrome console. None of the answers have worked for me :(
Is it possible via jquery/javascript or some other library?