Sorry if this has been published many times. But I tried many options and it still does not work. HTML is coming back from jQuery AJAX, and I am trying to remove the header and footer from the response using:
// none of these work for me $("#content", data); $("#content", $(data)); $(data).find("#content").html()
I left a response to verify that #content exists by checking $ (data) and using the warning to print the text of the data. I also try to use "body" or "a" as selectors, but always returns as undefined.
I read in this post that you cannot get the full XHTML document: jquery ajax parse response text . But I can no longer find the answer quote, maybe it is out of date?
Has anyone encountered this problem?
Thanks a lot Steve
steve source share