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