Hello. I have this html:
<div id="a"> <span>Я</span> <span>люблю</span> <span>печеньки</span> </div> <div id="b"></div> When I click a button, the following script is executed:
$('div#b').html($('div#a').children('span').text()) I had this problem.
It eventually transfers the text like this:
<div id="b">Я люблю печеньки</div> And how can I make it endure like this:
<div id="b">Я люблю печеньки</div> I hope the problem is understood.)