更新时间:2022-03-12 06:32:28
我之前已经这样做了。在这里尝试我的解决方案 http://jsfiddle.net/R8PhF/3/
I've already done that before. Try my solution here http://jsfiddle.net/R8PhF/3/
$(document).ready(function(){
$('#mytextbox').keyup(function(e){
var code = (e.keyCode ? e.keyCode : e.which);
if(code == 13) {
var tabables = $("*[tabindex != '-1']:visible");
var index = tabables.index(this);
tabables.eq(index + 1).focus();
}
});
});