i'm having some trouble with these lines here. im not sure why they aren't working for me.
i've tried each of these lines, separately obviously. its supposed to select every 5th child of the #tin-ebay-results div but it doesn't seem to want to! thoughts?
and the same iterations using the addclass function belowHTML Code:<script>$('#tin-ebay-results > div:nth-child(5n+1)').append('class="noRightMarg"');</script> <script>$('#tin-ebay-results div:nth-child(5n+1)').append('class="noRightMarg"');</script> <script>$('#tin-ebay-results :nth-child(5n+1)').append('class="noRightMarg"');</script> <script>$('#tin-ebay-results:nth-child(5n+1)').append('class="noRightMarg"');</script> <script>$('#tin-ebay-results #child-div:nth-child(5n+1)').append('class="noRightMarg"');</script>
HTML Code:<script>$('#tin-ebay-results > div:nth-child(5n+1)').addClass('noRightMarg');</script>



Reply With Quote

Bookmarks