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);
},
});
});
});
精彩评论