title: How to copy data from select to clipboard without plugins, etc.?
body: <p>So, the question is:</p>
  
  <p>Is it possible to copy data from <code>select</code> element without additional plugins(jQuery is ok, but nothing else), like there:</p>
  
  <p><a href="https://stackoverflow.com/a/30810322/5490451">https://stackoverflow.com/a/30810322/5490451</a></p>
  
  <p>The main problem is here:</p>
  
  <pre><code>var copyTextarea = document.querySelector('.js-copytextarea');
  copyTextarea.select();
  </code></pre>
  
  <p>If we work with <code>textarea</code> - everything is fine, but for <code>select</code> it's not applicable. I can't select the data inside the <code>select</code> element.</p>
  
  <p>Any ideas, guys?</p>
  
  <p>Use case: I want to set a function on <code>onchange</code> event for <code>select</code> element with a list of values, copy these values, and paste into <code>textarea</code> or another element, it doesn't matter</p>