我正在发送ajax请求,我已将结果附加到div上.在此追加之后,如果我想点击附加的链接(exec jquery点击功能),为什么点击功能doesen't工作?(抱歉英文不好:P)
编辑:
jQuery('.more').live("click",function() {
var ID = jQuery(this).attr("id");
if(ID) {
jQuery("#more"+ID).html('<img src="template/css/images/moreajax.gif" />');
jQuery.ajax({
type: "POST",
url: "loadmore.php",
data: "lastid="+ ID,
cache: false,
success: function(html){
$("#contentWall").append(html);
jQuery("#more"+ID).remove(); // removing old more button
}
});
} else {
jQuery(".morebox").html('The End');// no results
}
return false;
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2811 次 |
| 最近记录: |