Skip to content

Instantly share code, notes, and snippets.

@vlrmprjct
Created November 18, 2014 08:54
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 vlrmprjct/53ec723cc5ac51a0f7fb to your computer and use it in GitHub Desktop.
Save vlrmprjct/53ec723cc5ac51a0f7fb to your computer and use it in GitHub Desktop.
jQuery attr Selector
$('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