title: jQuery clone duplicate IDs
body: <p>I have an HTML element with a large collection of unordered lists contained within it. I need to clone this element to place elsewhere on the page with different styles added (this is simple enough using jQuery).  </p>
  
  <pre><code>$("#MainConfig").clone(false).appendTo($("#smallConfig"));
  </code></pre>
  
  <p>The problem, however, is that all the lists and their associated list items have IDs and <code>clone</code> duplicates them. Is there an easy way to replace all these duplicate IDs using jQuery before appending?</p>