AJAX Refresh Page Content

1
2
3
4
5
6
7
8
9
function refresh_content() {
$.ajax({
type: "GET",
url: "page.php",
success: function(result) {
$("#content").html($(result).find("#content").html());
}
});
}

You may need to use filter instead of find if the id is not a top level element.