lets say I have a
<div id="god">
Supertext
</div>
I want to assign
<div id="god">
Supertext
</div>
to a variable
.text()
.html()
only gets "supertext" as a value.
$("#god")
$("#god").clone
returns an object
I don't want to wrap the object and get it's html, because it's time consuming. How can I select the whole item and assign it to a variable in javascript?