tags:

views:

55

answers:

2

$("id").clone()

then put the jQuery object into a div#target

how to do that?

+2  A: 
$('#id').clone().attr('id', 'foo').appendTo('#target') 
// the .attr to prevent duplicate ids.
meder
appendTo has a dollar sign in your solution which is wrong.
Philipe Fatio
I think I got the point across anyway - it's been fixed.
meder
A: 

$('#id').clone().appendTo('div#target');

mck89