Edit The Code:
See Result »
Try it Yourself - ©
w3ii.com
This example demonstrates how to assign an "onselect" event to an input element.
Select some text: