Jquery: finding element with classname stored in variable
<p>(Edited with more detail just in case someone else has a similar question)</p>

<p>I've got an image map which needs to reveal a div on rollover of a hotspot. I've given my areas on the image map classes, and using jQuery want to reveal it's corresponding div, e.g.,</p>

<p><code>area shape="rect" coords="601,31,723,107" href="#" alt="Some Location" class="some-location"</code></p>

<p>Each area has a different location and therefore different classname.</p>

<p>I'm not sure how to reference an element with its classname stored in a variable?
For example, the code I currently have to get the class name on hovering over an area on the image map is:</p>

<p><code>
var hotspot = $(this).attr("class");
</code></p>

<p>Now I want to do something like:</p>

<p><code>
$(div.hotspot).show();
</code></p>

<p>The above is not working - could someone point me in the right direction?</p>
