I am trying to find a jQuery selector that gets every element with a specific attribute value - not necessarily the same attribute, just the same attribute value. For example, what jQuery selector would pick up each of the following?
<h1 name="test"><h1>
<a id="test"></a>
<p data-attribute="test"></p>
All I can think to try is $("*").attr( "*", "test" ) but that does not work.