If there is highlighted text inside of a text input, how do I remove the selected text?
I set up a fiddle to show how far I got, but I can't figure out how to remove the given text.
<input type='text' value='stackoverflow.com' id='text1' />
<br />
<button id="btnSelect">select text</button>
<button id="btnRemove">remove selected text</button>