title: delete selected text in textarea in both Google Chrome and Internet Explorer
body: <p>I can get selected text using this code in internet explorer:</p>
  
  <pre><code>var selectedText;
    // IE version
    if (document.selection != undefined)
    {
      textComponent.focus();
      var sel = document.selection.createRange();
      selectedText = sel.text;
    }
  </code></pre>
  
  <p>but, how to delete selected text in TEXTAREA, for example, using JavaScript in both Google Chrome and Internet Explorer?</p>