P
PeP
Good morning,
I have a form containing a text-area,
I'd like to know if it exists a function that, when I activate an event,
returns the position of the cursor in the text-area.
For example, I write ten words in the text-area,
then I move the cursor at the beginning of the second word
and activate the event (for example, click on a button):
is there a way to know that the cursor is at the beginning of the second
word?
I know that the text-area is considered as a string,
so I want the position of the cursor in that string
at the moment of the event activation.
I hope I was clear.
Thanks in advance to all readers
I have a form containing a text-area,
I'd like to know if it exists a function that, when I activate an event,
returns the position of the cursor in the text-area.
For example, I write ten words in the text-area,
then I move the cursor at the beginning of the second word
and activate the event (for example, click on a button):
is there a way to know that the cursor is at the beginning of the second
word?
I know that the text-area is considered as a string,
so I want the position of the cursor in that string
at the moment of the event activation.
I hope I was clear.
Thanks in advance to all readers