Working with a narrowed down DOM using jQuery
<p>I am currently trying to figure out a way to work within a selected <code>&lt;div&gt;</code> in order to be able to send a text formatted email. </p>

<p>So there is a button says "email". When a user clicks on it, it grabs a closest div as below.</p>

<pre><code>var selectedDiv = $(callingElement).closest(".myClassName");
</code></pre>

<p>And from there I would like to grab various dom elements to create a clean text format. So how do I work within selectedDiv using jQuery? </p>

<p>For example, </p>

<ol>
<li>Getting <code>&lt;h1&gt;</code> value.</li>
<li>Getting <code>&lt;li&gt;</code> value with certain class names</li>
<li>Getting "title" attribute value.</li>
</ol>
