title: Is this an even or odd element?
body: <p>So I <a href="https://stackoverflow.com/questions/7679003/jquery-tigerstipe-rollover-conundrum">saw this question</a> a few moments ago on SO and it got me thinking. </p>
  
  <p>Basically the OP had something along these lines</p>
  
  <pre><code>&lt;div&gt;a&lt;/div&gt;
  &lt;div&gt;b&lt;/div&gt;
  &lt;div&gt;c&lt;/div&gt;
  &lt;div&gt;d&lt;/div&gt;
  </code></pre>
  
  
  
  <pre><code>$('div').each( function() {
     //do something different based on whether even or odd div
     if ($(this) == ':even') {}  //invalid markup I know!
     else {}
  });
  </code></pre>
  
  <p><strong>Is there a way to tell inside the <code>.each()</code> whether your current element is an odd or even instance?</strong> </p>
  
  <p>There is the <code>.filter</code> method of jQuery, but it always returns true when it has a single element. </p>
  
  <p>I also realize you can use the nth-child selector or set this up in other ways, but I am curious about this specific case.</p>