About cloning

About cloning

This is one of these situations where I could read the jQuery API and find out for myself how cloning works, but I find it more satisfying to ask here on this forum and get a good answer from you guys :-)

So, given this jQuery object...

$object1 = $("#someElement");

.... what is the difference between this...

$object2 = $object1.clone();

... and this ...

$object2 = $($object1);

?






--
Šime Vidas
http://www.w3viewer.com