开发者

ajax toggled menu

I'm trying to ajaxfy the content on this toggled menu, well, I just would like to know why the ajax request still doesn't push up the HTML.

CODE

$(function() {
  $("div.content2").hide();
  $("ul.menu-busca").delegate("li.toggle", "click", function() {
    $(this).next().toggle("fast").siblings(".content2").hide("fast");
    $.ajax({
      cache: true,
      loadstatus: "<img src='img/89.gif' /> Loading...",
      url: "menulist.html",
      dataType: "html",
      success: function(data) {
        $attrib.html(data).data("conten开发者_如何学Pythont2", true);
      },
    });
  });
});
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜