Get id from a one div to another div
- by Jean
Hello
Here are the two divs
<div id="1">
<span id="a1">first</span>
<span id="a2b">first</span>
<span id="a3">first</span>
</div>
Click
<div id=2></div>
And the jQuery code to do
$('#2').bind('click',function(){
var xx = $('#a'+i).attr('id');
…