input 、textarea默认值设置
2012-10-12 17:32
211 查看
编辑器加载中...
input defalutValue
input:
// function dothings(){
var txt1=document.getElementById("txt1");
if (txt1.value=="请输入查询关键字")
{txt1.value="";
txt1.focus();
}
}
// ]]>
textarea:
议题或问题
input defalutValue
input:
// function dothings(){
var txt1=document.getElementById("txt1");
if (txt1.value=="请输入查询关键字")
{txt1.value="";
txt1.focus();
}
}
// ]]>
textarea:
议题或问题
相关文章推荐
- 设置input,select,textarea不可编辑模式
- input,textarea的placeholder属性设置字体颜色
- Jquery提供了获得和设置元素的value的方法。如input, textarea等元素的value值。
- input文本框设置和移除默认值
- 如何设置上传文件控件 input type="file" 的 默认值
- input、textarea中placeholder属性设置的兼容性问题
- input如何设置默认值
- yii2中textarea中的默认值设置
- HTML input 默认值设置
- HTML input文本框设置和移除默认值
- JavaScript设置form, textarea, text input元素的value
- input和textarea只读设置
- 给input date设置默认值
- HTML input 默认值设置
- JavaScript 获取/设置光标位置,兼容Input&&TextArea
- 设置<input type="text">的默认值
- MVC3中给Html.TextAreaFor设置默认值(初始值)
- input默认值设置
- JS获取及设置TextArea或input文本框选择文本位置的方法
- HTML input 默认值设置