Skip to content

Instantly share code, notes, and snippets.

@espl-saket
Created December 23, 2015 06:17
Show Gist options
  • Save espl-saket/3f38c0a012df92f9da58 to your computer and use it in GitHub Desktop.
Save espl-saket/3f38c0a012df92f9da58 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