title: How to select text with jQuery
body: <p>How can I select a part of the text and process by jQuery? For example, I have a text as</p>
  
  <pre><code>&lt;div id="test"&gt;This is an example text here&lt;/div&gt;
  </code></pre>
  
  <p>I select few words (not the whole div) with mouse, and want to show these words (part of <code>#test</code>) in</p>
  
  <pre><code>&lt;div id="target"&gt;&lt;/div&gt;
  </code></pre>