View Single Post
Old 06-19-2003, 03:40 PM   PM User | #6
pitchoo
New Coder

 
Join Date: Jun 2002
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
pitchoo is an unknown quantity at this point
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"...
pitchoo is offline   Reply With Quote