I want to copy the content of a selected div to another div with jquery clone. but I dont want to append it anywhere
what I mean is when we make a clone of a div with j
I don't agree. Clone can save data without applying to the content.
Look here:
http://www.jsfiddle.net/dactivo/FqffM/
var mylayer=$('.hello').clone();
Here you can manage the variable "mylayer" as you want, and it's not in the DOM.