Here are the div elements:
<div id="10" class="latestblock">
<img>
<span>Abc</span>
</div>
<div id="11" class="latestblock">
<img>
<span>pqr</span>
</div>
function AppendDiv(10,11)
{
var eFrom = $('#' + 10);
var toDiv = $('#' + 11);
var htmldiv = eFrom.toString() + toDiv.toString();
<!--$("#large").html
(
htmldiv
).center().fadeIn("slow");--> Not working
}
Now I would like to combine these div elements and append them to another div shown below:
<div id="large"></div>
The desired layout should look like this:
https://i.sstatic.net/Ien71.png
The final generated HTML output should be as follows:
<div id="large">
<div id="10" class="latestblock">
<img>
<span>Abc</span>
</div>
<div id="11" class="latestblock">
<img>
<span>pqr</span>
</div>
</div>
How can I achieve this?