javascript - jQuery appendTo() w/ Selectors -
so i've added 4 elements page separate wordpress loop. i'm using jquery appendto() add them within list of posts (loop). works fine except last one... seems not able select using last-child or only-child or nth-child. other 3 elements selected , moved fine using last-child(#).i've tried can think of. think? of course, once 3 elements moved suppose last 1 left no longer considered last-child or first-child?... only-child doesn't work either... jquery(document).ready(function ($) { var toapp1 = $(".recent_updates > .fp_post:nth-child(4)"), toapp2 = $(".recent_updates > .fp_post:nth-child(7)"), toapp3 = $(".recent_updates > .fp_post:nth-child(10)"), toapp4 = $(".recent_updates > .fp_post:nth-child(13)"); var ad1 = $(".recent_updates > #skippingads:nth-last-child(4)"), ad2 = $(".recent_updates > #skippingads:nth-last-child(3)"), ad3 = $(...