Javascript/Jquery - How do I get the element that the user has selected with their cursor?
<p>If the user highlights the text within an <code>&lt;h1&gt;</code> with their cursor, how do I get that <code>&lt;h1&gt;</code> object?  Or if they selected text within an <code>&lt;li&gt;</code>, how do i get that <code>&lt;li&gt;</code>?</p>
