I have a DOMelement like
text
and I have saved this in a variable elem in a function
function(elem){ var elem=elem; }
And NOW I want to save this dom object as a string like
<div class="testdiv"><div class="delete">text</div>
How would you manage this? I tried sth. like elem.toString()
which didn't work or elem.html()
which just returns the INNER html.