最简单的语句,寻最快的解决途径 只清除某一文本框的内容?document.all.文本框的name/id.value="" 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <input id="a1" value="123"><button onclick="a1.value=''">Clear</button> 直接把值给为空,好象不可以也!另外document.form1.a1.value="";为什么没有作用? document.form1.a1和document.all.a1有什么不同? <form name=form1><input id="a1" value="123"><button onclick="document.form1.a1.value=''">Clear</button><form>or====<form name=form1><input id="a1" value="123"><button onclick="document.all.a1.value=''">Clear</button><form> 用JQuery如何实现? 关于JS调用cooikes的问题! jquery 可以用javascript里的方法吗?? js怎么获取onclick(id)中id. 要有兼容性的。 js导出excel 如何使用单层来显示图片? JavaScript 透镜效果(带拖动、缩放效果) 在网上下了个Js播放器,现在想让其有歌词显示,我该怎么办?请大侠们指点? 怎么用client script获取浏览器的session id? window.showModalDialog函数可以调用异地的网页么? 急 二个正则表达式该怎么写??
<button onclick="a1.value=''">Clear</button>
另外document.form1.a1.value="";
为什么没有作用?
和document.all.a1
有什么不同?
<input id="a1" value="123">
<button onclick="document.form1.a1.value=''">Clear</button>
<form>or
====<form name=form1>
<input id="a1" value="123">
<button onclick="document.all.a1.value=''">Clear</button>
<form>