Reputation: 3699
I have:
<div id='1'>
<div id='2'><div>
</div>
If I do: $("<img/>").appendTo('#1');
The result is:
<div id='1'>
<div id='2'><div><img/>
</div>
How to chage the query so that the result will be?:
<div id='1'>
<img/><div id='2'><div>
</div>
Upvotes: 2
Views: 2008