Skip to content

Instantly share code, notes, and snippets.

@JoeyBurzynski
Forked from espl-saket/jquery_selectors.txt
Created April 14, 2016 17:23
Show Gist options
  • Save JoeyBurzynski/1a47b55a28ff5a2d1aabae0b4e8b27d0 to your computer and use it in GitHub Desktop.
Save JoeyBurzynski/1a47b55a28ff5a2d1aabae0b4e8b27d0 to your computer and use it in GitHub Desktop.
1. Class selector - .<classname>
2. Id selector - #<id>
3. Scope selector - .<classname><space>.<dusra_classname>
4. Immediate child selector - .<classname>">".<child_classname>
5. Attribute selector - [<attributename>='<value>'] OR [<attributename>]
6. Tag selector - "<tagname>"
7. DOM element - Directly pass the element to jquery function
8. Multiple element - separate selectors using <comma>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment