brookey86
04-03-2008, 07:16 PM
for (i=0; i<document.getElementsByTagName("td").length; i++)
{
if (document.getElementsByTagName("td")[i].hasAttribute("style"))
alert('yes and the position: ' + i);
}
Why does this .hasAttribute chunk give me a "Object doesn't support this property or method" error? This is supported by DOM, and there are multiple td tags on my page with the style attribute.
testing in IE.
{
if (document.getElementsByTagName("td")[i].hasAttribute("style"))
alert('yes and the position: ' + i);
}
Why does this .hasAttribute chunk give me a "Object doesn't support this property or method" error? This is supported by DOM, and there are multiple td tags on my page with the style attribute.
testing in IE.