jQuery get elements ID name from known dynamic class name
<p>I have a value passed via a # in the url this is the class name of a checkbox what i am trying to do is get the value of that checkbox ID using jQuery</p>

<pre><code>// get hashtag value
if(self.document.location.hash){
var urlhash = self.document.location.hash;
var hashtagval = self.document.location.hash.replace("#","");

// get id of element from hashtagval (class name)
var counter = $('.'+hashtagval).attr('id');
}
</code></pre>
