Get contents of div (from ajax result).

Get contents of div (from ajax result).

Is it possible to filter the results of an ajax request so it ONLY contains the contents of a div.

So my script gets /example.htm which looks like:

<body>
<div id="head">This is the head</div>
<div id="content">This is the content</div>
</body>


And this code will be stored inside ajaxRequest.responseText.

So, is it possible to only keep the insides of the #content div?

If anyone is curious, this is so my website degrades nicely, every page will have the full html.

Many thanks!