Pls kindly help for the following code
for (var i=1;i<=TotalQuestion;i++){
var objCell = Qtable.rows.cells;
if (objCell[9].innerText!=null){ check whether the cell value is null or not
//do sth
}
}
i have tested that even if the cell value is null, but it still enter to the if loop.
i have tried to correct objCell[9].innerText!="" instead of objCell[9].innerText!=null , but it still can't work...
pls help
for (var i=1;i<=TotalQuestion;i++){
var objCell = Qtable.rows.cells;
if (objCell[9].innerText!=null){ check whether the cell value is null or not
//do sth
}
}
i have tested that even if the cell value is null, but it still enter to the if loop.
i have tried to correct objCell[9].innerText!="" instead of objCell[9].innerText!=null , but it still can't work...
pls help