I am working on an ASP.NET page. I am making AJAX requests when displaying some pages and it returns a string like '<html><head>......</head></html>'. I am setting this string as an inner html of an element to display content. All I want to do is select and append only one element and it contents from string. is it possible ? Sample:
string :
<html><head></head><body><div id='page'>CONTENTS ARE HERE </div></body></html>
element I want to select : <div id="page">CONTENTS ARE HERE </div>
Is there any way to do this by using jQuery or any other way ? thank you very much.