[jQuery] How to get html string including the selected element
Hi All,
I need to get html for a dom structure like this:
<div id="test">
<div id="test2">something</div>
<img ....../>
</div>
if I use
$('div#test').html();
it generates its innerHTML excluding <div id="test">
How an I get the whole structure including id test?
thanks