Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Selelct all" by code instead of using context menu

Status
Not open for further replies.

lelo66

Programmer
Sep 14, 2004
10
0
0
CH
Hi

On a webpage I fill some text from a database in a textbox.
Now I should "select all" the text in that textbox by code; like the user can do this using the context menu.

Anyone knows how to do this?

Thanks
Lelo
 
Ask in the javascript forum as you'll have to do this client side, not server side.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
You'd probably do that with some JavaScript.

I found this, but haven't tested it

javascript:this.form.text_area.focus();this.form.text_area.select();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top