Home > php教程 > php手册 > Asp.net 文本框全选的实现

Asp.net 文本框全选的实现

WBOY
Release: 2016-06-13 12:20:05
Original
775 people have browsed it

一、鼠标滑过textbox全选
前台:
dsdsds

dsdsds
后台:
this.txtbox1.Attributes.Add("onMouseOver", "this.focus();this.select();");

二、得到焦点
后台:
textbox1.Focus();
textbox1.Attributes.Add("onfocus","this.select()");

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template