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

Got Focus

Status
Not open for further replies.

dvannoy

MIS
May 4, 2001
2,765
US
I am trying to create something similar to my VB6 code below. I have a textbox that searches a database. once done I would like the entire text in the textbox highlited so all the user has to do is start typing over the current text.

how can I create something either in Java Script thats similar to what I have done in VB?


txtText.SelStart = 0
txtText.SelLength = Len(txtText.Text)

Thanks for your help

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top