Created
November 18, 2014 08:54
-
-
Save vlrmprjct/53ec723cc5ac51a0f7fb to your computer and use it in GitHub Desktop.
jQuery attr Selector
This file contains 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
$('a[href$="ABC"]').foobar(); | |
// http://docs.jquery.com/Selectors | |
// For attributes: | |
// = is exactly equal | |
// != is not equal | |
// ^= is starts with | |
// $= is ends with | |
// *= is contains | |
// ~= is contains word | |
// |= is starts with prefix (i.e., |= "prefix" matches "prefix-...") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment