Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 143529

How to capture the cursor position of a text field?

$
0
0

Hi,

I need to permanently capture the position of the cursor of a text field and the write the position to another text field. E.g. if the text field contains "Hello world" and the cursor is placed after the word "Hello", then the position is "5". How can I monitor the position? I think I need JavaScript to do this, but I do not know how...

Can anyone advice?

Thanks in advance,

Michael


Viewing all articles
Browse latest Browse all 143529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>