5
Hello,
I’m having a doubt.
I have a variable containing an html structure and I need to inject a basic div (< div > < / div >) around all the contents of this variable, as a parent, using only jQuery.
I believe I should use the append and appendTo, but I’m lost.
Any tips? Thank you
I came here to answer with
.append
, but your solution is much better! + 1– Artur Trapp
That’s exactly what it was, thank you !!
– Sabrina