Jquery selected value of highlighted text
<p>Im trying to make my editor where when you highlight text on your computer, jquery will take that selected value and throw the tags around it, more specificity code or pre tags.</p>

<pre><code>    var Selectedvalue =  // set highlighted selection value
        $("#content").contents().find("body").append($("&lt;pre&gt;&lt;/pre&gt;").append(Selectedvalue))
   ;
</code></pre>

<p>I already know how to get the value between the tags, i just need to know how to get the value.</p>
