$("id").clone()
then put the jQuery object into a div#target
how to do that?
$("id").clone()
then put the jQuery object into a div#target
how to do that?
$('#id').clone().attr('id', 'foo').appendTo('#target')
// the .attr to prevent duplicate ids.