[jQuery] Re: using tabIndex

2007-07-19 Thread Klaus Hartl
Brian Cherne wrote: Hi Phil, #elem1 must already have tabindex set $(e).attr('tabindex') returns a string, so you should multiply it by 1 to convert it to a number, otherwise #elem2 will end up with a tabindex of "11" $("#elem2").attr("tabindex", $("#elem1").attr("tabindex")*1+1); Cheers

[jQuery] Re: using tabIndex

2007-07-18 Thread Brian Cherne
Hi Phil, #elem1 must already have tabindex set $(e).attr('tabindex') returns a string, so you should multiply it by 1 to convert it to a number, otherwise #elem2 will end up with a tabindex of "11" $("#elem2").attr("tabindex", $("#elem1").attr("tabindex")*1+1); Cheers, Brian. On 7/18/07, Phi