How can I get the position of the caret in a textarea if no text is selected,and the selected text if the user has selected some text?
I believe this is done using ranges,but I dont know how.
Thanks in advance.
I believe this is done using ranges,but I dont know how.
Thanks in advance.
Comment