I can\'t seem to get the appendTo to work. What do I do wrong?
$(\'div:nth-child(2n) img\').appendTo(parent);
Current markup:
&
You can use .prepend() instead of append Append insert at the end off a the parent. But prepend insert at the begin from the parent. so then like:
$('.container > p').each(function () { $(parent).prepend(this); });