title: JQuery: determine if certain IDed element is the first with a certain class?
body: <pre><code>&lt;div id="welcome" class="right"&gt;&lt;/div&gt;
  &lt;div id="visit_us" class="right"&gt;&lt;/div&gt;
  &lt;div id="our_products" class="right"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>A function is passed an ID and I need to know if it is the first first element that has the class "right". So "welcome" would be true, while the others would be false.
  I thought this might do it: </p>
  
  <pre><code>function highlightElement(el){
     $(el + ":eq(.right:first)")
  }
  </code></pre>
  
  <p>but no dice (or at least it doesn't appear to be doing it correctly). Any advice?</p>