Consider this ajax call:
$.ajax({
type: "POST",
url: "misc/moreactivities.php",
data: { lastmsg : ID, pid: pid },
cache: false,
success: function(html){
$("#profileWall").append(html);
$("#more"+ID).remove();
}
});
Right now it appends everything that is output in moreactivities.php
. I only want to append the div#moreactivity
element from within it.
How can this be done?