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
$("#from").clone().appendTo($("#to"));
But it will not remove/hide the main DIV. To hide the main div, do this:
$("#from").clone().appendTo($("#to")); $("#from").remove();