jQuery - How to get selected text from textarea/input?
<blockquote>
  <p><strong>Possible Duplicates:</strong><br>
  <a href="http://stackoverflow.com/questions/144810/jquery-get-textarea-text">jQuery get textarea text</a><br>
  <a href="http://stackoverflow.com/questions/717224/how-to-get-selected-text-in-textarea">How to get selected text in textarea?</a>  </p>
</blockquote>



<p>So I want to get the text selected within textarea.
val() returns entire text so that's no good.</p>
