title: Find list item with class and get its list position in jQuery
body: <p>I have a list like this:</p>
  
  <pre><code>&lt;ul&gt;
      &lt;li class="pageItem"&gt;1&lt;/li&gt;
      &lt;li class="pageItem"&gt;2&lt;/li&gt;
      &lt;li class="pageItem current"&gt;3&lt;/li&gt;
      &lt;li class="pageItem"&gt;4&lt;/li&gt;
      &lt;li class="pageItem"&gt;5&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I want to calculate the list item position of .current. In this case it would be 3.</p>
  
  <p>Just to make things clear: I don't want the X &amp; Y position of the element. Just what number in the line it has.</p>
  
  <p>Thanks!</p>