$(function() { $('.more').live("click",function() { var ID = $(this).attr("id"); if(ID) { $("#more"+ID).html(''); $.ajax({ type: "POST", url: "more.php", data: "lastid="+ ID, cache: false, success: function(html){ $("div#updates").append(html); $("#more"+ID).remove(); } }); } else { $(".morebox").html('끝'); } return false; }); });