我想像这样在所选元素上发送击键:
$(":input").click(function(){
$(this).trigger("keydown", [{
preventDefault:function(){},
keyCode:9,
shiftKey: true
}]);
});
//wants to send Shift+Tab keystroke on input click
演示:http: //jsfiddle.net/NYwCT/。