title: Set textarea selection in Internet Explorer
body: <p>I'm looking for a way to <em>set</em> a selection in a textarea in Internet Explorer. In other browsers, this works just fine:</p>
  
  <pre><code>textarea.selectionStart = start;
  textarea.selectionEnd = end;
  </code></pre>
  
  <p>In IE, I assume I have to use <code>createRange</code> and adjust the selection somehow, but I cannot figure out how.</p>
  
  <p>Extra bonus points for a link to a proper documentation about <code>createRange</code> and associated methods, MSDN isn't helping out much.</p>