How to append a tag with specific id using Jquery?
<p>i want to append a  tag to  with different ids, for eg.</p>

<pre><code>&lt;div id="1"&gt;&lt;/div&gt;
&lt;div id="2"&gt;&lt;/div&gt;
&lt;div id="3"&gt;&lt;/div&gt;
&lt;div id="4"&gt;&lt;/div&gt;
</code></pre>

<p>if i use <code>$('div').append('&lt;span&gt;Hello World&lt;/span&gt;);</code>
then it attached the <code>&lt;span&gt;</code> tag with every <code>&lt;div&gt;</code>, but i want to attach it to only 1 div based on it id. for example some time to 4 some times to 3 etc.</p>
