Skip to content

Instantly share code, notes, and snippets.

@sranso
Created January 30, 2014 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sranso/8701821 to your computer and use it in GitHub Desktop.
Save sranso/8701821 to your computer and use it in GitHub Desktop.
// selectors
$("#candyCanes") //says go grab me everything with this id.
$(".polarVortex") //class
$("footer") //with this element tag
// filter selections
$("div.foo").has("p"); //with p tag
$("h1").not(".bar"); //w/o bar
$("ul li").filter(".current"); //w current
$("ul li").first(); //first
$("ul li").eq(4); //fifth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment