Skip to content

Instantly share code, notes, and snippets.

@brito
Created March 27, 2012 20:57
Show Gist options
  • Save brito/2220174 to your computer and use it in GitHub Desktop.
Save brito/2220174 to your computer and use it in GitHub Desktop.
An edge case where html is impossible given custom JSP tags
// 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