clone object not working properly on a page with jquery code created with PHP script
<pre><code>&lt;li style="padding: 5px; width: 150px; overflow: hidden; float: left; height: 202px;"&gt;
    &lt;div class="title"&gt; &lt;a href="/index.php?option=com_virtuemart&amp;amp;view=productdetails&amp;amp;virtuemart_product_id=68&amp;amp;virtuemart_category_id=7"&gt;Castle Bounce House&lt;/a&gt; &lt;/div&gt;
    &lt;div class="image"&gt; &lt;a href="/index.php?option=com_virtuemart&amp;amp;view=productdetails&amp;amp;virtuemart_product_id=68&amp;amp;virtuemart_category_id=7"&gt; &lt;img height="100" width="130" border="0" src="http://newsite.domain.com/images/stories/virtuemart/product/resized/castle_themed_bo_4f844059227b89_90x90.jpg"&gt;&lt;/a&gt; &lt;/div&gt;
    $949.00
    &lt;div class="addtocart"&gt;
        &lt;div class="addtocart-area"&gt;
            &lt;form action="index.php?option=com_virtuemart&amp;amp;view=cart" class="product" method="post"&gt;
                &lt;div class="addtocart-bar"&gt;
                    &lt;label class="quantity_box" for="quantity68"&gt; &lt;/label&gt;
                    &lt;span class="quantity-box"&gt;
                    &lt;input type="text" value="1" name="quantity[]" class="quantity-input"&gt;
                    --&amp;gt; &lt;/span&gt; &lt;span class="quantity-controls"&gt; 
                    &lt;!--&lt;input type="button" class="quantity-controls quantity-plus" /&gt;
        &lt;input type="button" class="quantity-controls quantity-minus" /&gt;--&gt; 
                    &lt;/span&gt; &lt;span class="addtocart-button"&gt;
                    &lt;input type="submit" value=" " class="addtocart-button" name="addtocart"&gt;
                    &lt;/span&gt;
                    &lt;div class="clear"&gt;&lt;/div&gt;
                &lt;/div&gt;
                &lt;input type="hidden" value="Castle Bounce House" class="pname"&gt;
                &lt;input type="hidden" value="com_virtuemart" name="option"&gt;
                &lt;input type="hidden" value="cart" name="view"&gt;
                &lt;noscript&gt;
                &amp;lt;input type="hidden" name="task" value="add" /&amp;gt;
                &lt;/noscript&gt;
                &lt;input type="hidden" value="68" name="virtuemart_product_id[]"&gt;
                &lt;input type="hidden" value="7" name="virtuemart_category_id[]"&gt;
            &lt;/form&gt;
            &lt;div class="clear"&gt;&lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/li&gt;
</code></pre>

<p>i have this 'li' tag  and  it's cloning properly i have matched every line but their is submit button in both original and clone object and when i submitting my page through the original then it is working properly.But when i submitting my page through the clone then their functionality is not working properly can any one tell me what is the problem with the cloning in jquery.</p>

<p>this is my clone object :</p>

<pre><code>&lt;li style="padding: 5px; width: 150px; overflow: hidden; float: left; height: 202px;"&gt;
    &lt;div class="title"&gt; &lt;a href="/index.php?option=com_virtuemart&amp;amp;view=productdetails&amp;amp;virtuemart_product_id=68&amp;amp;virtuemart_category_id=7"&gt;Castle Bounce House&lt;/a&gt; &lt;/div&gt;
    &lt;div class="image"&gt; &lt;a href="/index.php?option=com_virtuemart&amp;amp;view=productdetails&amp;amp;virtuemart_product_id=68&amp;amp;virtuemart_category_id=7"&gt; &lt;img height="100" width="130" border="0" src="http://newsite.domain.com/images/stories/virtuemart/product/resized/castle_themed_bo_4f844059227b89_90x90.jpg"&gt;&lt;/a&gt; &lt;/div&gt;
    $949.00
    &lt;div class="addtocart"&gt;
        &lt;div class="addtocart-area"&gt;
            &lt;form action="index.php?option=com_virtuemart&amp;amp;view=cart" class="product" method="post"&gt;
                &lt;div class="addtocart-bar"&gt;
                    &lt;label class="quantity_box" for="quantity68"&gt; &lt;/label&gt;
                    &lt;span class="quantity-box"&gt;
                    &lt;input type="text" value="1" name="quantity[]" class="quantity-input"&gt;
                    --&amp;gt; &lt;/span&gt; &lt;span class="quantity-controls"&gt; 
                    &lt;!--&lt;input type="button" class="quantity-controls quantity-plus" /&gt;
            &lt;input type="button" class="quantity-controls quantity-minus" /&gt;--&gt; 
                    &lt;/span&gt; &lt;span class="addtocart-button"&gt;
                    &lt;input type="submit" value=" " class="addtocart-button" name="addtocart"&gt;
                    &lt;/span&gt;
                    &lt;div class="clear"&gt;&lt;/div&gt;
                &lt;/div&gt;
                &lt;input type="hidden" value="Castle Bounce House" class="pname"&gt;
                &lt;input type="hidden" value="com_virtuemart" name="option"&gt;
                &lt;input type="hidden" value="cart" name="view"&gt;
                &lt;noscript&gt;
                &amp;lt;input type="hidden" name="task" value="add" /&amp;gt;
                &lt;/noscript&gt;
                &lt;input type="hidden" value="68" name="virtuemart_product_id[]"&gt;
                &lt;input type="hidden" value="7" name="virtuemart_category_id[]"&gt;
            &lt;/form&gt;
            &lt;div class="clear"&gt;&lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/li&gt;
</code></pre>
