telekommander
11/18/2014 - 8:54 AM

jQuery attr Selector

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-...")