Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dustintheweb/5967196 to your computer and use it in GitHub Desktop.
Save dustintheweb/5967196 to your computer and use it in GitHub Desktop.
Select all element multiples, beyond the ones you want to retain
// >> jQuery - select all element multiples, beyond the ones you want to retain >>>>>>>>>>>>>>>>
$('.someElement').find('ul li+li').hide();
// li+li+li
// li+li+li+li, etc
// same syntax as css
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment