开发者

Adding jQuery to XMLHttp

How c开发者_运维知识库an I add jQuery click events to a page which was loaded with XMLHttpRequest?


Use the $.live() method to handle items that will appear later in the pages lifetime.

  $("a").live("click", function(e) {
    e.preventDefault(); // disables all links, even links added via AJAX
  });
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜