jquery select elements with some attribute with the value
===

I want to select the elements use the value of an attribute, however, the attribute with this value can be anything eg. href, action, id.
so, how can I select those elements?