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

  • Thread starter Thread starter guy
  • Start date Start date
G

guy

Is it possible to select all text in a asp text box when it gets focus? How?
 
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 said:
Is it possible to select all text in a asp text box when it gets focus?
How?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top