Get id from a one div to another div
<p>Here are the two divs</p>

<pre><code>&lt;div id="1"&gt;

&lt;span id="a1"&gt;first&lt;/span&gt;
&lt;span id="a2b"&gt;first&lt;/span&gt;
&lt;span id="a3"&gt;first&lt;/span&gt;

&lt;/div&gt;
</code></pre>

   Click 

<pre><code>&lt;div id=2&gt;&lt;/div&gt;
</code></pre>

<p>And the jQuery code to do</p>

<pre><code>  $('#2').bind('click',function(){
            var xx = $('#a'+i).attr('id');
            $('#2').append(xx);
            i=i+1;
        });
</code></pre>

<p>It does not get all the 3 id's from #1</p>

<p>Thanks
Jean</p>
