Find an element in DOM based on an attribute value
Posted
by michael
on Stack Overflow
See other posts from Stack Overflow
or by michael
Published on 2010-04-22T21:27:27Z
Indexed on
2010/04/22
21:33 UTC
Read the original article
Hit count: 172
dom
|JavaScript
Hi,
Can you please tell me if there is any DOM API which search for an element with given attribute name and attribute value:
Something like:
doc.findElementByAttribute("myAttribute", "aValue");
Thank you.
© Stack Overflow or respective owner