I'm here struggling to figure out how to implement and what methods to use Jquery for the following purpose.
Scenario:
The user places the mouse cursor over input and it must automatically simulate a keydown (KeyCode: 40) in that input. This event serves to automatically call up a list that is only triggered by this key. Whenever the user places the cursor on the input, he must automatically simulate a keydown. At the moment the user has to click arrowdown but I want this process to be automatic
$( "#input" ).click(function() {
$("#input").trigger(jQuery.Event('ArrowDown', { keycode: 40 }));
});
Thank you for your help. I'm out of ideas here :(