I have an html page called test.html, here is it's content:
I then have another page which I am using $.get to get the content of the page:
$.get("test.html", function (data) {
alert($(data).find("body").html());
});
However the alert($(data).find("body").html()) returns null. It does the same for the alert($(data).find("form").html()) also. Only if I specify alert($(data).find("div").html()) does it return the input field.
How can I select the body / form?