Is it possible to count the number of characters in a textarea right up until the cursor.
For example (|= cursor):
This is sample text in a| textarea.
----
In the above sentence the cursor is on the 24th position. Is it possible to calculate this using Javascript?
Any help is greatly appreciated.
Remco
For example (|= cursor):
This is sample text in a| textarea.
----
In the above sentence the cursor is on the 24th position. Is it possible to calculate this using Javascript?
Any help is greatly appreciated.
Remco