|
not exactly...
I want to get an element by its id (not its tag name) and then perform a getElementsByName on it.
For example if I have this HTML code:
<td>
... some HTML code ...
</td>
<td id="myid">
<div name="aname">...</div>
<div name="aname">...</div>
<div name="aname">...</div>
</td>
<td>
... some HTML code ...
</td>
Instead of using document.getElementsByName("aname") which is traversing the whole HTML document, I'd like to perform a getElementsByName only in the HTML block contained in the column with id="myid"...
|