jquery find link that has the same ID value than the CLASS value of another element
<pre><code>var currentId = $('#nav a').attr('id');
var currentClass = $('#circle-inner h1').attr('class');
if(currentClass == currentId) {
  $('#nav a').addClass("current");
}
</code></pre>

<p>i want to compare the two valuesand if they are the same do something (addClass)</p>

<p>that is what i'm trying to achieve with that piece of code...</p>

<p>i cannot give the value of the class. there are too many.</p>

<p>thanks.</p>
