我有一个gridview,其中第3个单元格有一个文本框控件,在onchange事件上调用了javascript函数。
有人能告诉我为什么在IE中可以工作,但在Firefox和Chrome中无法工作吗?
grd.rows[rowindex].cells[3].childNodes[0].value
在IE中它返回正确的值,但在Chrome和Firefox中却不是(在FF和Chrome中返回undefined
)?
请还建议我处理这个问题的解决方案。
编辑
alert(grd.rows[ri].cells[3].childNodes[0].value);//IE value=correct value, FF and chrome value=undfined
alert(grd.rows[ri].cells[3].childNodes[1].value);//IE value=undfined, FF and Chrome value= correct value
谢谢