jQuery Input Text Selection Toggler demo
Instructions
- Click in the input text and all of the content should be highlighted
- Click again to deselect all text
- Click and drag to select multiple characters
- Click back in to clear the selection
- Exiting the input field should clear any selections (native browser behaviour, plus resets the data attribute)
(Yes - this is the world's most boring demo!)