I'm trying to get only the necessary information from a GET request. Here's the function I'm using:
this.updateTargetList = function(content) {
$.get("index.php?AJAXmd=1", function (data) {
var selector = "div.list";
$(selector).html(data);
});
}
The GET returns a whole bunch of html, more than I need, so it's loading that into the div whose class is "list". For example, the get is returning:
<div class="a">.....
<div class="b">.......
<div class="list>........</div>
</div>
</div>
How can I change data to only get the class or id that I want?