I need to insert an unclosed tag into a selector:
$("div.crop-to-select").html("")
$("div.crop-to-select").append("<table>")
where I want to do the closing later, myself:
$("div.crop-to-select").append("</table>")
I am finding, though, that the append always adds
<table></table>
each time. My table is getting closed before I can put any data into it.
Is there a different jQuery function for this?
You can do something like this..