function onLevel1()
{
var code = BfspForm.bfsp.lxId.value;
var name = BfspForm.bfsp.lxName.value;
var retValue = window.showModalDialog("BfspAction.do?operate=searchlxNameList&operPage=lxName_list&ifSingle=true&code=" + code + "&name=" + name,"",'dialogWidth:600px;dialogHeight:400px;status:no'); if (retValue != null)
{
BfspForm.bfsp.lxId.value = retValue[0];
BfspForm.bfsp.lxName.value = retValue[1];
}
}
怎么老提示BfspForm.bfsp.lxId为空或不是对象
{
var code = BfspForm.bfsp.lxId.value;
var name = BfspForm.bfsp.lxName.value;
var retValue = window.showModalDialog("BfspAction.do?operate=searchlxNameList&operPage=lxName_list&ifSingle=true&code=" + code + "&name=" + name,"",'dialogWidth:600px;dialogHeight:400px;status:no'); if (retValue != null)
{
BfspForm.bfsp.lxId.value = retValue[0];
BfspForm.bfsp.lxName.value = retValue[1];
}
}
怎么老提示BfspForm.bfsp.lxId为空或不是对象
var a=document.getElmentById("lxId");
if(a){
alert(a.value);
}
采用的是struts结构