Is it possible to select some text within a DIV and right after selection (ie. right after releasing the mouse button) a SPAN appears next to the selected text. I prefer not to use jQuery - just Javascript + CSS if possible.
PS. Ideally it should be possible to select multiple times within the same DIV and the span should only appear on the latest selection (and disappear from the previous selection).
BEFORE SELECTION
<div>Some text to select</div>
AFTER SELECTION
<div>Some text to select <span>[selected!]</span></div>