title: Get selected text on the page (not in a textarea) with jQuery
body: <p><a href="http://github.com/localhost/jquery-fieldselection/tree/master" rel="noreferrer">This plugin</a> lets you grab text the user has selected in a textarea, and <a href="http://www.codetoad.com/javascript_get_selected_text.asp" rel="noreferrer">this site</a> has non-jQuery-based instructions for grabbing text the user has selected outside of a text area.</p>
  
  <p>I'm wondering whether the functionality of the latter is available in any jQuery plugin.</p>
  
  <p><strong>Edit:</strong> Also, is it possible to get the starting and ending indexes of the selection? I.e., where the selection starts and ends within the containing element?</p>