tags:

views:

26

answers:

1
d = $j("#sort_sections > li").map(function(index, element){
    return [[element.id,
        $j(element).find("li.content").map(function(subindex, subelement){
            return subelement.id;
        }).toArray()]];
}).toArray();

It currently works in 1.4.2, but I need it to work in 1.3.2 =\

+2  A: 

Replace .toArray() with .get().

They do the same thing, but .toArray() was added in jQuery 1.4.

patrick dw