How to show a hidden div if hash matches its ID
<p>I have a page with a bunch of hidden <code>&lt;div&gt;</code>’s. I want to be able to link directly to any of them and have them show if the hashtag matches the <code>id</code>. I already have </p>

<pre><code>var thisHash = window.location.hash;
if(window.location.hash) {
    $(thisHash).show();
}
</code></pre>

<p>I need to make sure <strong>every</strong> other <code>&lt;div&gt;</code> is hidden though. I can add a class if the hash matches the <code>&lt;div&gt;</code> but I’m not sure how to go about checking to see if the <code>id</code> of the <code>&lt;div&gt;</code>'s <code>id</code> matches the <code>.hash</code>. </p>
