focus on next tabindex of HTML element onEnter keypress by JQuery
I found a couple of minor jQuery issues. Fixed here: JSFiddle. This line: $(‘*’).attr(‘tabindex’, tabindex).focus(); can be written like this: $(‘[tabindex=’ + tabindex + ‘]’).focus(); and this: $(‘#Msg’).text($(this).id + ” tabindex: ” + tabindex + ” next element: ” + $(‘*’).attr(‘tabindex’).id); is not calling the id attribute the jQuery way (you are using JavaScript syntax, … Read more