javascript:document.sele.submit()错误,急!!!!
<form name="sele" method="post" action="file.asp" onsubmit="return ckse()">
<tr >
<td bgcolor="#FFFFFF" colspan="4"> <table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td bgcolor="#BFBFBF" width="6%"> 查询:</td>
<td height=20 width="10%" bgcolor="#BFBFBF">
<select name="style">
<option value="name" selected>项目主题</option>
<option value="content">项目内容</option>
<option value="zhipai">指派人</option>
<option value="size">责任人</option>
<option value="time">开始日期</option>
<option value="time2">截止日期</option>
</select>
</td>
<td bgcolor="#BFBFBF" width="5%" >为</td>
<td bgcolor="#BFBFBF" width="30%"> <input type="text" name="selecttext" size="35" maxlength="37">
</td>
<td width="49%"><a href="javascript:document.sele.submit();" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','images/search_on.gif',1)"><img name="Image8" border="0" src="images/search_off.gif" align="middle"></a>
<a href="#" onclick="window.open('addsoft.asp','','width=800 height=600')" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image9','','images/add_on.gif',1)"><img name="Image9" border="0" src="images/add_off.gif" align="middle"></a> </td>
</tr>
</table></td>
</tr>
</form>
执行代码,报错:document.sele为空或不是对象
改为:sele.submit();时报sele未定义,请高手指教!!!!!
------解决方案--------------------或者定义一个id为sele使用document.getElementById("sele").submit();
------解决方案--------------------你把以上的代码放到单独的一页,是可以正常提交的,如果你还有其它代码的话,估记是代码冲突了