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

J

John Timney \(Microsoft MVP\)

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

Staff online

Members online

Forum statistics

Threads
473,767
Messages
2,569,571
Members
45,045
Latest member
DRCM

Latest Threads

Top