Did you try this: alert($('#item1-1').parent().attr('id'));
On 27 Nov., 12:56, ximo wallas wrote:
> Hello there, after too much sarching I have almost give it up with the
> following.
> I have a list with another list nested:
>
> Item 1
>
>
> Item 1 - 1
>
$('#item1-1').parent().closest('li').attr('id') will be faster
because it won't retrieve the full list of parents
On 27 nov, 13:20, Michel Belleville
wrote:
> Well, that must mean that the parent has no id, which is exactly the case :
>
>
> Item 1 <= $('#item1-1').parent().parent()
>
2 matches
Mail list logo