title: how to get selected text inside a textarea element by javascript?
body: <p>I'm not familiar with such attributes,</p>
  
  <p>can someone provide a simple demo?</p>
  
  <p>I need it to be done without any libraries.</p>