Name an id dynamically with javascript?
<p>How can I dynamically name id's using javascript?</p>

<p>Something like this:</p>

<p>js:</p>

<pre><code>var idName = "fruit";
</code></pre>

<p>html:</p>

<pre><code>&lt;img id="javascript:idName" src="banana.jpg"&gt;
</code></pre>
