I have the following html:
<div id="one"></div>
<div id="two"></div>
When I run the following code in jquery:
$(function () {
    var span  = $("<span>name</span>");
    $("#one").append(span);
    $("#two").append(span);
});
The span is added only to the last div:
<div id="one"></div>
<div id="two"><span>name</span></div>
I'd expect it to be added to the both divs, why it's not?
 
     
     
     
     
     
     
    