按回车提交
//Press <Enter> or <Space> key to submit login form when Submit button is focus
$("#submitBtn").bind("keypress", function(e) {
if( e.which==13|| e.which==32)
{
$(this).click();
}
});
发布时间: 2013-07-16 22:38:05 作者: rapoo
按回车提交
//Press <Enter> or <Space> key to submit login form when Submit button is focus
$("#submitBtn").bind("keypress", function(e) {
if( e.which==13|| e.which==32)
{
$(this).click();
}
});