$('#step1').eq(1).detach().appendTo('#tmp');
$('#step2').detach().appendTo('.content');
I have a div holder class="content"
, when click a button, #step1
detached, and append to a temple div #tmp
, #step2
detach from some other place and append to <div class="content">
Is there any way to use detach combine with animate or toggle?
I tried .animate({width:'toggle'},2000)
but it doesn't work.