[jQuery] Re: is there a tab-indexer plugin?

2008-02-17 Thread Colin Clark
Cherry, Tabindex behaves differently across browsers. For example, IE expects the tabindex attribute to be in camel case ("tabIndex"). It also returns differently-typed values than FireFox, and can be more difficult to query for the presence of a tabindex attribute. I've written a little t

[jQuery] Re: is there a tab-indexer plugin?

2008-02-16 Thread [EMAIL PROTECTED]
Totally fair point, and one that Dennis's snippet doesn't fix entirely. I was fretting over http://jquery.cherryaustin.com, which has a nested div structure. The 'natural' tabs were all over the place - the divs are all javascript show/hide jobs, and various browsers set various tabs according to

[jQuery] Re: is there a tab-indexer plugin?

2008-02-16 Thread Karl Rudd
I'm curious as to why this would need to be done. By "default" links on a page have a tabindex based on their position in the HTML so there's usually no need to set the tabindex. Interesting article on the subject: http://www.webaim.org/techniques/keyboard/tabindex.php Karl Rudd On Feb 17, 2008

[jQuery] Re: is there a tab-indexer plugin?

2008-02-16 Thread [EMAIL PROTECTED]
Like magic :)) Thanks, Dennis! On Feb 16, 4:26 pm, spinnach <[EMAIL PROTECTED]> wrote: > try this: > > $('a').each(function(i,e){ >$(this).attr('tabindex', i); > > }); > > dennis. > > [EMAIL PROTECTED] wrote: > > > or does anyone know how to make one? Something that will incrementally > > num

[jQuery] Re: is there a tab-indexer plugin?

2008-02-16 Thread spinnach
try this: $('a').each(function(i,e){ $(this).attr('tabindex', i); }); dennis. [EMAIL PROTECTED] wrote: or does anyone know how to make one? Something that will incrementally number the tabindexes for all the hrefs on a page? It's a shot in the dark, but worth trying to save all that effort