How to select the text of a span on click?
<p>I am looking for a way to select the text inside a span using jquery when the text is clicked on.</p>

<p>For example in the html snippet below,  I want the text "\apples\oranges\pears" to become selected when it is clicked on.</p>

<pre><code>&lt;p&gt;Fruit &lt;span class="unc_path"&gt;\\apples\oranges\pears&lt;/span&gt;&lt;/p&gt;
</code></pre>

<p>I've tried implementing this myself to no avail.</p>
