onfocus="this.select();"的使用
2014-12-04 16:01
232 查看
在一些文本域中,有时为了提高效率,我们需要在点击文本框的时候,就把文本框中的内容选中,这样可以直接删除,而不用在ctrl+a全选,在用的时候,也先简单,这个函数是内置的,不需要专门写函数代码,而是在<input>标签中直接使用。
相关文章推荐
- onfocus="this.value=''"
- onFocus="this.blur()",
- outline:none || hidefocus="true" || onfocus="this.blur();"
- 当鼠标点击input框时,想让全选input框的所有内容只需要加“onfocus="this.select();”就可以了
- onfocus="this.blur()" 文本框不可点击输入
- 修复VirtualBox "This kernel requires the following features not present on the CPU: pae Unable to boot
- 【Error】Syntax error on token "Invalid Character", delete this token
- 总结:FORM中使用onSubmit="return false"防止表单自动提交,以及submit和button提交表单的区别
- 使用On Error Resume Next语句,On Error Goto 0语句,Err对象来处理"运行时错误"
- jquery设置背景图片:$(this).css("background-image","url(on.jpg)");就可以了
- FORM中使用onSubmit="return false"防止表单自动提交,以及submit和button提交表单的区别
- 链接去掉虚线框的牛B方法onfocus="this.blur()"
- 使用用sudo时提示"### is not in the sudoers file. This incident will be reported.
- FORM中使用onSubmit="return false"防止表单自动提交
- 【Error】Syntax error on token "Invalid Character", delete this token
- JS function document.onclick(){}报错Syntax error on token "function", delete this token
- FORM中使用onSubmit="return false"防止表单自动提交,以及submit和button提交表单的区别
- onselectstart="javascript:return false;"
- on the web appear:"No data returned for this view.This might be because the applied filter excludes
- 使用了<input type="submit" value="Submit" onclick="this.disabled=true" />不能提交