I'm looking for a way to determine if someone has selected text on a page.
There are two ways I can see to select text. Double-click on it (which automatically selects the text) or click-and-drag to select text.
- How would I fire an event on double-click?
- How would I fire an event when someone selects text?
jQuery is preferred