For example, I want to match all elements that have "data-foo" within any of their attributes:
<a data-foo="abc" href="#">I'm Matched</a>
<a data-foo-bar="abc" href="#">I'm Matched Too</a>
<a data-foo-bar-baz="abc" href="#">I'm Matched Too</a>
<a data-bar-foo="abc" href="#">I'm Not Matched</a>
I could easily loop through all of the elements and check myself but I wasn't sure if jQuery supported this type of selector.