如果使用下一个函数
禁用元素#3,我如何从元素#2移动到#4jQuery.extend(jQuery.expr[':'], {
focusable: function (el, index, selector) {
return $(el).is('[tabindexgt],[tabindexdxfiltro]');
}
});
$(document).on('keypress','input,select', function (e) {
if (e.which == 13) {
e.preventDefault();
// Get all focusable elements on the page
var $canfocus = $(':focusable');
var index = $canfocus.index(document.activeElement) + 1;
if (index >= $canfocus.length) index = 0;
$canfocus.eq(index).focus();
}
});