Menu
Hello.
When trying to get a value from a text box that is located within a <td> i use this code in IE:
[CODE]var t = document.getElementById(‘tblCheques’);
var rs = t.getElementsByTagName(‘tr’);
var cells;
var row_tot;
for(var i=1;i<rs.length;i++)
{
cells = rs[i].getElementsByTagName(‘td’);
if(cells[6].firstChild.length == ”)
{
var anothervar = Number(0);
} else {
var anothervar = Number(cells[6].firstChild.value);
}
}
so obviously this will fetch the value entered in the 7th cell.
This code is NOT working in FF… any ideas why?