Created
March 27, 2012 20:57
-
-
Save brito/2220174 to your computer and use it in GitHub Desktop.
An edge case where html is impossible given custom JSP tags
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// field selectors, in this case by name | |
names = ['name', 'last_name', 'age']; | |
$.each(names, function(i, name){ | |
$('[name="'+name+'"]').attr('tabindex', i); | |
}); | |
// In theory this should just be HTML, but the default setting for human is "stupid" | |
// http://dev.w3.org/html5/spec/editing.html#sequential-focus-navigation-and-the-tabindex-attribute |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment