G
Guest
I get a collection of tables as below in Javascript
var eleTables = document.getElementsByTagName("table");
I then loop through my tables as below
My Table id is always blank when I try to alert it and yet my table has an
id (<table border="0" cellspacing="0" cellpadding="0"
id="igtabctl00_MainContent_uctrFinancialAccountsContainer_UltraWebTab1"
width="100%" height="80%" style="position:relative;">)
Anyone know why this is the case?
for (var i=0; i < eleTables.length; i++)
{
var elTableID = eleTables;
alert('table id ' + eleTables.id);
}
var eleTables = document.getElementsByTagName("table");
I then loop through my tables as below
My Table id is always blank when I try to alert it and yet my table has an
id (<table border="0" cellspacing="0" cellpadding="0"
id="igtabctl00_MainContent_uctrFinancialAccountsContainer_UltraWebTab1"
width="100%" height="80%" style="position:relative;">)
Anyone know why this is the case?
for (var i=0; i < eleTables.length; i++)
{
var elTableID = eleTables;
alert('table id ' + eleTables.id);
}