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
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
2 matches
Mail list logo