Last active
April 4, 2016 21:38
-
-
Save jonasporto/a9fd67d671f7d06cca41ff3ccb73a32a to your computer and use it in GitHub Desktop.
usefult selectors examples, regex, nth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Javascript | |
document.querySelectorAll('a[href$=reject]') // all elements with a link terminated by reject | |
document.querySelectorAll('a[href^=reject]') // all elements with a link started by reject | |
document.querySelectorAll('[src*=graph\\.facebook]') // all elements that contains graph.facebook as content src | |
document.querySelectorAll('tr td:nth-child(2)') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment