468,765 Members | 1,711 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,765 developers. It's quick & easy.

How to select all text in textbox when it gets focus?

guy
Is it possible to select all text in a asp text box when it gets focus? How?
Nov 18 '05 #1
1 5362
try using javascript, something like this should do it.............

onClick="javascript:this.form.text_box_name.focus( );this.form.text_box_name.
select();">

just a guess mind you...........
--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"guy" <gu*@hotmail.com> wrote in message
news:m4********************************@4ax.com...
Is it possible to select all text in a asp text box when it gets focus?

How?
Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Phill | last post: by
2 posts views Thread by Cindy M -WordMVP- | last post: by
5 posts views Thread by ad | last post: by
8 posts views Thread by cj | last post: by
4 posts views Thread by Andrew | last post: by
4 posts views Thread by Dabbler | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.