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!

How do I highlight text in a textarea on a form that is being edited?

Status
Not open for further replies.

moham

Programmer
Nov 12, 2001
13
0
0
US
How do I select/highlight a single word inside a textarea if I know the location(index) of that word in the string using javascript?
 
I figured this out using (IE Specific) -->creatTextRange() method for the textarea element.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top