Is there any way to get the current location of the caret (cursor) from a <input
type="text"/> element?

Thanks