What is the best way to simulate a user entering text in a text input box in JS and/or jQuery?
I don\'t want to actually put text in the input box,
For typescript cast to KeyboardEventInit and provide the correct keyCode integer
const event = new KeyboardEvent("keydown", { keyCode: 38, } as KeyboardEventInit);