3
4

1 回答 1

3

try keypress as found here:

Submitting a form on 'Enter' with jQuery?

$('.input').keypress(function(e) {
    if(e.which == 13) {
        jQuery(this).blur();
        jQuery('#submit').focus().click();
    }
});
于 2013-11-04T20:23:59.217 回答