I am able to iterate through all div elements in a document, using getElementsByTag("div"). Now I want to build a list of only div elements that have the attribute "id" (i.e. div ...
I have passed the HTML content to a string say"Html_content". I need to parse string "Html_content" and pick few DIV tags using there ID's say for example "fullHeader" is id ...
I have multiple elements on page and all of them have unique id something like that: title_1, title_2, title_n etc.
<a href="http://link" id="title_1">Link name</a> <a href="http://link" id="title_2">Link name</a> <a href="http://link" id="title_n">Link name</a>