<script language="javascript"> function clear()
{
document.form1.txtsellno.value=="";
document.form1.txtcustno.value=="";
document.form1.txtcustomer.value=="";
}
</script>
js区分大小写.
{
document.form1.txtsellno.value=="";
document.form1.txtcustno.value=="";
document.form1.txtcustomer.value=="";
}
</script>
js区分大小写.
解决方案 »
- 动态表格:填加表行时,同时继承上一行的表单输入?
- 各位高手帮忙解决一个文字处理问题!谢谢!
- widow.open() 打开新窗口 2次后 页面变空白(求教高手)
- |zyciis| Jquery Ajax如何捕捉我的ASP.NET的出错信息,如:throw new Exception("测试错误");
- 【共享】刚刚做的一个 JS简单时间控件【JS时分秒时间控件】
- 请教jsp:怎么判断表单的内容是不是整数
- 有没有什么方法防止我框架里面的页面使用了top.location=self.location
- 如何清空Form内输入框、下拉框的内容或还原为默认值?
- 求助(现场给分)...关于窗口连接问题。
- js函数传递在a标签中添加onclick执行出问题
- JavaScript怎样获得当前页面的源文件
- 如何屏蔽embed中的鼠标右键
document.form1.txtsellno.value=="";这是赋值
document.form1.txtsellno.value="";如果不行用
document.all.form1.txtsellno.value="";IE浏览器里加上.all要好些
<tr><td width="124" height="43" align="right">订单编号:</td>
<td width="169"><input name="txtsellno" type="text" size="15" value=""> <td>
<td width="216" align="left">业务员代号:
<input name="txtcustno" type="text" size="10" value=""></td>
<td width="76" align="left">公司简称:
</td>
<td width="87" align="left"><input name="txtcustomer" type="text" size="10" value=""></td> <tr><td></td>
<td> </td>
<td><input type="SUBMIT" name="button1" value="查询"><input type="reset" name="button2" value="重设" ONCLICK ="clear():"></td>
</tr>
</table>
</form><script language="javascript"> function clear()
{
document.form1.txtsellno.value=="";
document.form1.txtcustno.value=="";
document.form1.txtcustomer.value==""; }
</script>
----------------
楼主的重置按钮又不是用来提交的.不需要返回值的.
js中return后的句子就不执行了,所以你原来的只会检查第一个input
另外这个function和value的值是否被asp初始化,没关系.楼住包我修改的代码里在加上<%=request(...)%>可以了.我测试过了.