I have textarea and I want to change text that says what character is after the caret (cursor).
<textarea id="text"></textarea>
<br/>
Character after the caret: <span id="char"></span>
I know how to get caret position. The problem is I don't know what event is invoked when users movet the caret (by typing, pressing arrow keys, clicking, pasting text, cutting text, …).