Hi i am trying to access every child that is not 3n + 6 something like this $('div:nth-child(!3n+6)') is there a way to select every child that is not 3n + 6 in jquery
$('div:nth-child(!3n+6)')
$('div:not(:nth-child(3n+6))')
should work fine
You can use : not () to indicate some element to avoid.
$('.div:not(:nth-child(3n+6))')
or
$('.div').not(":nth-child(3n+6)")