I’m doing an ajax call, the data_response has a single HTML element with a lot of markup inside:
<div>**code I want to retrieve**</div>
I want to get the innerHtml without the parent element, so that I put it inside another element.
Basically:
$('selector').html(**code I want to retrieve**);
How can this be done?
If the response really just contains HTML, then you can parse it easily using JQuery:
Edit
It’s the same principle as this: