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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

focus() and highlight 1

Status
Not open for further replies.

sonnysavage

Programmer
May 29, 2002
130
US
I am setting focus to a text input element that already has data in it. I want to highlight all the text in that input element at the same time.

You can witness the behavior that I'm trying to achieve by tabbing through a form. When you hit a text input element that already has data, all of the text is highlighted.

Thanks for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top