I have
$.ajax({
url: identity,
success: function(data) { ProcessIdentityServer(data) }
});
When \'data\' is returned, is there a way to
// Finds all div elements within an XML document from an AJAX response.
$("div", xml.responseXML);
You have to define a container first, to be able to get/modify the elements from the response:
$.ajax({
url: url + "/ajax.htm",
dataType: "html",
success: function(html) {
container = $('#ajax_content');
container.html(html);
container.find("a").css("background","red");
}
});
Sure you can use the $(data) function, one of the core jquery functions, to turn the returned html into DOM elements. Check out the docs online.