[jQuery] Re: getting index of elements

2007-10-11 Thread Wizzud
You need to give the class .bt some context other than the whole document ... $('.botoes').each(function(){ alert( $('a', this ).index( $( '.bt', this )[0] ) ); }); On Oct 11, 4:34 pm, ecopantoche [EMAIL PROTECTED] wrote: hello all, I'm new to jQuery, and have the following need:

[jQuery] Re: getting index of elements

2007-10-11 Thread ecopantoche
thank you very much Wizzud! you saved my day and I finally understand the logic arround the index :)