You can find elements by attribute value with
$('element[attribute="value"]')
where elementis an arbitrary selector ( HTML element, .classnameor #ID) and attributecan be any attribute that you put in tags, for example. srcfor elements imgor hreffor elements aor also namefor form field elements.
for example
$('#ID')
can be rewritten as (assuming the element is div):
$('div[id="ID"]')
, , , , , .