[SOLVED] Getting textarea current cursor position
I’m trying to create my own in-app keyboard used for inputting custom characters to the textarea, however, it’s not possible to insert characters in the middle of the input by detecting the position of the cursor and inserting the character there.
Getting cursor position (and selected text position) seems to be possible in plain HTML/JS using something like this
var cursorPosition = $('#myTextarea').prop("selectionStart");
but I can’t see how I can implement that on a
Is there any way to get the current cursor position (or selected position) from a q-input?
Thanks in advance.
metalsadman last edited by
@metalsadman Thank you very much! Didn’t see that when I searched.