PDA

View Full Version : using select() and focus() for 1 character


pthompson2002
08-30-2002, 01:29 PM
Is there a way, using select() and focus(), to select one particular character in a text area rather than the entire text area?

I'm using:

thisform.characters.focus()
thisform.characters.select()

I am returning an alert than can pick the character position of the element, but i can't seem to, or don't know how to, highlight just that character.

beetle
08-30-2002, 04:15 PM
The select() and focus() methods only apply to objects (which a single character is not). You will need the textRange interface to select just 1 character.