Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('[data-index]').keypress(function(e) {
- if(e.which == 13) {
- e.preventDefault();
- currentIndex = $(this).attr('data-index');
- $('*[data-index="' + theNextDataIndex + '"]').focus();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement