开发者

jQuery: how do I convert this to 1.3.2?

开发者 https://www.devze.com 2023-01-12 21:37 出处:网络
d = $j(\"#sort_sections > li\").map(function(index, element){ return [[element.id, $j(element).find(\"li.content\").map(function(subindex, subelement){
d = $j("#sort_sections > li").map(function(index, element){
    return [[element.id,
        $j(element).find("li.content").map(function(subindex, subelement){
            return subeleme开发者_开发知识库nt.id;
        }).toArray()]];
}).toArray();

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


Replace .toArray() with .get().

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号