只清空这个input 的值, 不清空其他input 的

解决方案 »

  1.   

    <input type="text" name="a" value="aaaaaaaaaaaaaaaaaaaaaaaaa">
    <input type=button name=B1 value=clear onclick="document.all.a.value=' ';">
      

  2.   

    <input type="text" name="a" value="aaaaaaaaaaaaaaaaaaaaaaaaa" onClick="this.value=''">
      

  3.   

    谢谢楼上的两位: 发现单单 清空 value 无法解决问题,现在需要清空value 的同时, 再刷新一个IFRAME, 如何实现?。
      

  4.   

    <input type="text" name="a" value="aValue" onClick="this.value='';inFrame.reLoad();">
    inFrame 是inframe的name
      

  5.   

    <IFRAME src="a.php" width="90%" height="400" frameborder="no" scrolling="no" name="content"></IFRAME><INPUT type="hidden" name="content" value=" aaaaaaaaa"><input type="button" value="清空上面content内容并刷新上面的IFRAME ">
    如果通过点击上面的 button  清空上面content内容并刷新上面的IFRAME 安整的应该怎么写?刚试了 onclick="document.all.content.value=' ';content.reLoad();">  不行
      

  6.   

    onclick="window.frames[0].document.all.content.value='';window.frames[0].location.reload();">
      

  7.   

    要刷新就不用清空啦
    onclick="window.frames[0].location.reload();">