Recently the following post has helped me simulate a keypress on click: Definitive way to trigger keypress events with jQuery
I found that the selector $("input") only seems to work if the page has an input that is visible and not disabled.
Is there a way to trigger a keypress on a hidden element or another element that will give the same result (properly trigger the key press event)?