I am trying to get a content of a another page using AJAX call. I am able to get the entire document but is it possible to get a better precision and get only a section that is within a target div?
<div class="myTarget">content that I need</div>
Here’s how I get it now:
$.ajax({
type: "GET",
url: "/dir/targetPage",
dataType: "html",
success: function(data)
{
$('#dropHere').html(data);
}
});
Where ‘#ele’ is an element with the id of
eleand all it’s inner children.