<?xml version='1.0' encoding='ISO-8859-1'?>
<?xml-stylesheet type='text/xsl' href='docs.xsl'?>
<docs>
<method cat='DOM/Manipulation' type='jQuery' short='Clone matched DOM Elements and select the clones.' name='clone'>
<desc>Clone matched DOM Elements and select the clones. 

This is useful for moving copies of the elements to another
location in the DOM.</desc>
<params type='Boolean' name='deep'>
<desc>(Optional) Set to false if you don't want to clone all descendant nodes, in addition to the element itself.</desc>
</params>
<examples>
<desc>Clones all b elements (and selects the clones) and prepends them to all paragraphs.</desc>
<before>&lt;b&gt;Hello&lt;/b&gt;&lt;p&gt;, how are you?&lt;/p&gt;</before>
<code>$("b").clone().prependTo("p");</code>
<result>&lt;b&gt;Hello&lt;/b&gt;&lt;p&gt;&lt;b&gt;Hello&lt;/b&gt;, how are you?&lt;/p&gt;</result>
</examples>
</method></docs>
