////////////////////////////////////////////// // Quick 'duplicate' function (use this to clone) $.fn.duplicate = function(count, cloneEvents) { var tmp = []; for ( var i = 0; i < count; i++ ) { $.merge( tmp, this.clone( cloneEvents ).get() ); } return this.pushStack(tmp); }; /* // usage // ('
').duplicate(5).appendTo('.container'); */