In jQuery, how can I trigger the behavior of a user tabbing to the next input field?
I\'ve tried this:
var e = jQuery.Event(\"keydown\"); e.which = 9
Have you tried using
$("input").trigger( 'keypress', e );
as a solution? I find sometimes being explicit is best. If that doesn't work possibly even
$("input").trigger( 'keypress', [{preventDefault:function(){},keyCode:9}] );.
$("input").trigger( 'keypress', [{preventDefault:function(){},keyCode:9}] );
Hope this helps.