jQuery: Open hash link relative to element id
<p>I have some jQuery like the following:</p>

<pre><code>$(".show-quiz").click(function () {
        $(".quiz-container").fadeIn("fast");
    });
</code></pre>

<p>and a link would be like:</p>

<pre><code>&lt;a href="#quiz1" class="show-quiz"&gt;Show Quiz&lt;/a&gt;
</code></pre>

<p>and on the page I would have a div like:</p>

<pre><code>&lt;div id="quiz1" class="quiz-container"&gt;&lt;/div&gt;
</code></pre>

<p>What I want to do is modify the jQuery so that any link with a class of <code>show-quiz</code> shows the element with the id that matches the link href hash.</p>

<p>How do I do this?</p>

<p>Thanks</p>
