I am trying to get the pixel location of the caret in a textarea I found some jquery examples but couldn´t find any examples using Angular2. Is there a way to handle this in Angular2?
Asked
Active
Viewed 139 times
1
-
1query is just JS, as is angular 2, why not just use the query snippet your found? if you would like to keep jQ out of it (like i would prefer) just search for at vanilla js solution. Start by looking here http://stackoverflow.com/questions/9012835/find-caret-position-in-textarea-in-pixels – iCediCe Oct 28 '16 at 09:16