Find element whose text matches text clicked in list
<p>I have a list in a side navigation bar which represents objects on a page. The headers of the objects match the titles in the list. This is illustrated in the image below:</p>

<p><img src="http://i.stack.imgur.com/A35hB.png" alt="enter image description here"></p>

<p>I am trying to show-toggle these objects using jQuery so that when the user clicks on the red list item (which would be the same header title as the red page object), the corresponding page object is toggled to show or hide.</p>

<p>Here is my simplified code:</p>

<pre><code>// The left navigation list
&lt;ul&gt;
    &lt;li&gt;Charity Challenge Golf Outing&lt;/li&gt;
    &lt;li&gt;Spring 2014 Membership Renewal&lt;/li&gt;
    &lt;li&gt;EMEA Product Launch&lt;/li&gt;
    &lt;li&gt;Platinum Customer Retention Spring Offer&lt;/li&gt;
    &lt;li&gt;Key Account Upsell 2014&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<hr>

<pre><code>// A couple of page objects
&lt;div class="single-activity"&gt;
    &lt;h2&gt;Charity Challenge Golf Outing&lt;/h2&gt;

    [...]
&lt;/div&gt;

&lt;div class="single-activity"&gt;
    &lt;h2&gt;Spring 2014 Membership Renewal&lt;/h2&gt;

    [...]
&lt;/div&gt;


&lt;div class="single-activity"&gt;
    &lt;h2EMEA Product Launch&lt;/h2&gt;

    [...]
&lt;/div&gt;
</code></pre>

<hr>

<pre><code>// The jQuery
$(".left-panel li").click(function() {
    $(this).toggleClass("selected");
    $("#page-content").find(".single-activity").slideToggle();
});
</code></pre>

<hr>

<p><strong>Question:</strong> I know right now why it's not working, but I'm a little unsure how to "find" the object based on the <code>&lt;h2&gt;</code> title. The code works to slide toggle ALL objects (since they all have the <code>.single-activity</code> class, but I only want to hide the one clicked. Any ideas?</p>
