Side navigation
#107 closed enhancement (fixed)
Opened July 27, 2006 02:23PM UTC
Closed August 17, 2006 05:15AM UTC
Last modified June 21, 2007 05:02AM UTC
There should be a .clone()
Reported by: | john | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.0 |
Component: | core | Version: | 1.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
If .appendTo(), and .prependTo() are going to be kept, there needs to be a .clone() function.
Hack with latest SVN:
$.fn.clone = function() {
return this.pushStack(
jQuery.map( this,
function(i){
return i.cloneNode(true);
})
, arguments );
};
Usage:
$('#the_tr').clone().appendTo('#destination_table');