P
pbd22
Hi.
Could some kind sould tell me what the javascript would be to get a
given attribute of the parent "table" element of a given element
inside that table.
So,
<table width="54">
[SNIP - LOTS OF HTML HERE]
<a href="#" onclick="Foo();">get the width attribute's value</a>
</table>
When I click on the anchor tag, it returns the number "54".
How do I do this?
Could some kind sould tell me what the javascript would be to get a
given attribute of the parent "table" element of a given element
inside that table.
So,
<table width="54">
[SNIP - LOTS OF HTML HERE]
<a href="#" onclick="Foo();">get the width attribute's value</a>
</table>
When I click on the anchor tag, it returns the number "54".
How do I do this?