http://jquery.nodnod.net/cases/85

Parece ok aqui. Pode ser alguma outra coisa na tua página, não dá pra
saber sem ver o html.
--------
Seems to work fine here. Could you post a complete test page showing
this issue?

- ricardo

On Feb 1, 1:25 pm, Garito <gar...@gmail.com> wrote:
> Hi!
> Please, consider this code:
>
> $.fn.url2 = function(absoluta) {
>                 var slots = $(this).parents('dl:not(:last)').map(function() {
>                         return $(".Texto:first", $(this)).text();
>                 });
>                 var slots2 = $(this).parents('dl').map(function() {
>                         return $(".Texto:first", $(this)).text();
>                 });
>                 return slots.get().join("/") + ' -- ' + 
> slots2.get().join("/");
>         };
>
> The funny thing of this code is that slots and slots2 have the same
> items
> Could you point me why slots put the last dl?
>
> I suppose that dl:not(:last) retrieves all the parents except the last
> one but this don't work
>
> Thanks!

Reply via email to