首页 > 代码库 > 清除input文本内容

清除input文本内容

1、在不想使用缓存的input中添加

autocomplete="off";eg:   
<input type="text" autocomplete="off" name="test" />  

2、在 input 所在的form标签中添加

autocomplete="off";eg:   
<form action="#" autocomplete="off">  
<input type="text" autocomplete="off" name="test" />  
</form>  

  

清除input文本内容