1
工作,我有JavaScript代碼的一個問題,它工作在IE7/8,但在Firefox.rows.length,不會在Firefox
不起作用for (var i = 1; i < document.getElementById(obj).rows.length; i++)
{
var numColumns = document.getElementById(obj).rows(i).cells.length;
if (numColumns > 0)
{
if (document.getElementById(obj).rows(i).cells(numColumns - 1).children.length > 1)
{
if (document.getElementById(obj).rows(i).cells(numColumns - 1).children(1).checked == true)
{
var ctrlId = document.getElementById(obj).rows(i).cells(numColumns - 1).children(1).id.replace('chk', 'txt')
workflowIds = workflowIds + (workflowIds == '' ? '' : '|') + document.getElementById(ctrlId).value;
}
}
}
}
錯誤:「錯誤:document.getElementById(obj).rows是不是一個函數...等「
謝謝!
謝謝,它真的幫了我! – AlexC 2010-01-21 15:01:42