Please have a look at: http://docs.jquery.com/JQuery_1.2_Roadmap#.nextUntil.28.29_.2F_.prevUntil.28.29 MaurĂcio
-----Mensagem Original----- De: Andy Para: jQuery (English) Enviada em: quarta-feira, 27 de maio de 2009 14:32 Assunto: [jQuery] Re: selecting next()'s until I reach a tag Thanks for the suggestion! That sort of works, but it's also getting the <p> tags AFTER the next H5, and I don't want it to. On May 27, 1:24 pm, "Mauricio \(Maujor\) Samy Silva" <css.mau...@gmail.com> wrote: > Try: > $('h5').nextAll('p'); > > MaurĂcio