Skip to content

Instantly share code, notes, and snippets.

Created April 11, 2014 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/10496115 to your computer and use it in GitHub Desktop.
Save anonymous/10496115 to your computer and use it in GitHub Desktop.
I need to write a function that looks at a chosen selector (in this case $('.foo') and only show the first one of each time
<div class="foo bar"></div>
<div class="foo raa"></div>
<div class="foo bar"></div>
<div class="foo bar"></div>
<div class="foo bar"></div>
<div class="foo raa"></div>
<div class="foo raa"></div>
<div class="foo raa"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment