问问题
148 次
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 回答