Adding load to ajax POST function
I am using the ajax POST from the examples on the jQuery site.
-
$.ajax({
type: "POST",
url: "some.php",
data: "name=John&location=Boston",
success: function(html){
$("#results").append(html);
}
})
;
I would like to add the "load" option onto this, so that I filter the
server response, and only return a specific ID:
-
$("#results").load("test.html #testing2");
How would I use these 2 together, to achieve what I am needing?