I have a case where I want to capture the simultaneous key press event of "shift+tab" key using jquery. Actually as you all know it is used to move tab in backward direction but for me in one scenario tha tab was not working in any direction i.e. neither forward nor backward. so I found a jquery function for moving tab in forward direction as follows:-
$(':input').live('keydown', function(e) {
var keyCode = e.keyCode || e.which;
if (keyCode == 9) {
tindex = parseInt($(this).attr("tabindex")) + 1;
if($(":input[tabindex='" + tindex + "']"))
{
$(":input[tabindex='" + tindex + "']").focus();
}
}
});
Now I want to move tah tab in backward direction as well.
Can somebody guide me how can i achieve this???
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…