Reputation: 159
I have this code, where i move a <li>
element to one <ul>
to another. But my <li>
will be placed in the bottom. how can i do, so it will be placed at the top?
$(cbox).parents('li').appendTo('#taskopen');
Upvotes: 0
Views: 1250
Reputation: 190
just use prependTo()
$(cbox).parents('li').prependTo('#taskopen');
Upvotes: 3