I believe this is what you’re looking for:
var press = jQuery.Event("keypress");
press.ctrlKey = false;
press.which = 40;
$("whatever").trigger(press);
From here.
More Related Contents:
- Run javascript function when user finishes typing instead of on key up?
- Binding arrow keys in JS/jQuery
- Handling key-press events (F1-F12) using JavaScript and jQuery, cross-browser
- prevent mobile default keyboard when focusing an from showing
- How to know if .keyup() is a character key (jQuery)
- How can I avoid autorepeated keydown events in JavaScript?
- How do I access the link to the content? [closed]
- I keep getting “Uncaught SyntaxError: Unexpected token o”
- How do I get jQuery to select elements with a . (period) in their ID?
- How to poll a Google Doc from an add-on
- Good ways to improve jQuery selector performance?
- jQuery DOM changes not appearing in view source
- How to call ajax in WordPress
- Prototyping Object in Javascript breaks jQuery?
- Changing width property of a :before css selector using JQuery [duplicate]
- Dashed border animation in css3 animation
- jQuery: keyup event for mobile device
- How to split a string at the first `/` (slash) and surround part of it in a “?
- jQuery – Redirect with post data
- Using mousedown event on mobile without jQuery mobile?
- Click on option event
- Disable zooming of the page in desktop web browsers using Javascript/Jquery [duplicate]
- blur vs focusout — any real differences? [duplicate]
- How to convert a Title to a URL slug in jQuery?
- Focus tab or window
- Execute function queue in javascript
- how to convert xml to json using jquery
- Force iOS numeric keyboard with custom / currency pattern
- Center an Image vertically and horizontally using CSS
- CORS error with jquery