Edit This Code:
See Result »
This example demonstrates how to assign an "onselect" event to an input element.
Select some text:
Result: