How to avoid ID-conflicts when on-the-fly generating elements
<p>Say I have this mockup-code:</p>

<pre><code>    button.click(function(){generateForm();}

     function generateForm(){
     div.append(&lt;input type='text' id='x'&gt;);
  }
</code></pre>

<p>I will need the ID in order to access the element individually. </p>

<p><strong>What is the best way to avoid having ID-conflicts in a scenario like this ?</strong></p>
