开发者

jQuery Accordion Content then Fade In

I have a UL with a bunch of LI's. Now, when I click on an LI I do an Ajax call and get a SPAN returned to me.

What I'd like to do is move the LI under the clicked one down and then fade in the new SPAN in the hole produced by moving the LI down.

I'm kinda not allowed to use an accordion in this instance if it can at all be helped.

Does anyone know how to do this or how to get the height of cont开发者_开发知识库ent returned from an ajax call?


$("li").click(function() {

  // do your ajax call, success function:
  success: function(data) {
    $(this).after(
      $(data).hide().fadeIn(500)
    );
  }

});
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜