Home > Article > Backend Development > Asp.net 文本框全选的实现_PHP
一、鼠标滑过textbox全选
前台:
或
后台:
this.txtbox1.Attributes.Add("onMouseOver", "this.focus();this.select();");
二、得到焦点
后台:
textbox1.Focus();
textbox1.Attributes.Add("onfocus","this.select()");