[jQuery] How does clone() work?

[jQuery] How does clone() work?


I'm having the worst time working with clone(). It returns an object...still
can't access it.
What I'm doing is looping through a list of divs (same class) and trying to
clone each one. I want to clone them so that I can reorder them.
var html;
// in the loop
html += $('#myDiv-' + id).clone();
Is what I think should work...but I just get objects.
Any tips here on this one?
Thanks
--
View this message in context: http://www.nabble.com/How-does-clone%28%29-work--tp20731606s27240p20731606.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.