文本框如何初始化的时候清空里面的历史记录

来源:互联网 发布:中级软件评测师 编辑:程序博客网 时间:2024/05/16 23:33

<input   id= "T1 "   class= "bbox "   type= "text "   name= "T1 "   size= "24 "   autocomplete=off   > 

用jQuery给文本框添加只读属性【readOnly】


<input id="id" type="text"  />

 

jQuery(

 $("#id").attr("readonly":"readonly");    //添加readonly属性


原创粉丝点击