一个struts页面,报错。其中js如下
function subPage(){
var theTable=document.getElementById('userTable');

var theCheckbox=document.getElementsByName('cid');
for(var i=0;i<theTable.rows.length;i++)
{
if(theCheckbox[i].checked==true)
{
document.spage.cntid.value = theTable.rows[i].cells[5].innerText.trim();
}
}
document.spage.action="findCountAction.do";
document.spage.submit();
}报错说document.spage.cntid.value = theTable.rows[i].cells[5].innerText.trim();该行对象不支持此属性或方法
请大侠指点