Hi all
This may not be the right place to ask but I can’t get the following javascript to work on the Vera. I have hunted high and low but all the methods seem to fail.
var lastRowIndex = table.rows.length-1;
var lastCellIndex = table.rows[lastRowIndex].cells.length-1;
var lastCell = table.rows[lastRowIndex].cells[lastCellIndex];
The .cells.length returns 0 even though I have cells in the table, actual last RowIndex does work. Obviously there is other code associated with this e.g. table has been defined.
lastRowIndex does return the correct number of rows.
The lastCellIndex returns -1 (from length-1)
Thanks
John