Let’s assume you have an HTML string containing a parent element with a number of children and their sub children elements. If you’d like to extract HTML of one of the children (by class name or id), you can use this jQuery line:
[javascript]
var html = $(htmlString).find(‘div.target’).html();
[/javascript]
It can be useful when you get an AJAX response from the server, and only a particular section needs to extracted.