Kevin Lund
Kevin Lund

Reputation: 159

Move li from one ul to another ul in top

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

Answers (1)

Aaroniker
Aaroniker

Reputation: 190

just use prependTo()

$(cbox).parents('li').prependTo('#taskopen');

Upvotes: 3

Related Questions