Consider:
<ul>
<li class="abc">one</li>
<li class="abc">two</li>
<li class="abc">three</li>
</ul>
<ul class="target"></ul>
What exactly happens when I do the following?
$('.target').append($('.abc'));
I suspect all <li>
elements to get removed from the first <ul>
and get inserted into 'ul.target'
. Would the event handlers attached to <li>
's get removed?