Using JavaScript/JQuery I'd like to have a line of code that will simulate a series of key strokes. Specifically I'd like line of code that:
- Simulates a click onto a text input field on another part of the page
- Enter a number into that text input field (I've already figured this part out)
- Simulate hitting the return key
The idea being I'm using a flipbook plugin and there's a page search field as part of the plugin. I'd like to create a button that quickly takes you to a specific page. The easiest way I've figured to do that is simulate a series of key strokes after the button is clicked which acts as if the user clicked into the page search field and entered in a page number then hit return.