title: Problem in using JQuery's clone() for text box
body: <p>This is what i need to clone: </p>
  
  <pre><code>&lt;p id="ex"&gt;
  &lt;label for="c2"&gt;Enter your Choice&lt;/label&gt;
  &lt;br&gt;
  &lt;input type="text" name="c2_r" id="c2" value="" /&gt;
  &lt;br&gt; 
  &lt;/p&gt;
  </code></pre>
  
  <p>I clone it by this statement:</p>
  
  <pre><code>$("#def").append($("#ex").clone());
  </code></pre>
  
  <p>As i see, it is cloning the p element. But,i actually want it to clone the p tag and set the value of textbox inside it to "". Can someone explain me what to do ? Also, i need to set the id of the textbox inside cloned element to be different from the original . Please help. Thanks</p>