title: get count of list element( based upon click)?
body: <p>PS: I am using <a href="http://pikachoose.com/versions/" rel="nofollow">this Jquery plugin</a>, although my question is not dependent on that.</p>
  
  <pre><code>    &lt;div class="pikachoose"&gt;
          &lt;ul id="pikame" class="jcarousel-skin-pika"&gt;
              &lt;li&gt;&lt;a href="http://www.pikachoose.com"&gt;&lt;img src="../../10.jpg"/&gt;&lt;/a&lt;/li&gt;
              &lt;li&gt;&lt;a href="http://www.pikachoose.com"&gt;&lt;img src="../../20.jpg"/&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="http://www.pikachoose.com"&gt;&lt;img src="../../30.jpg"/&gt;&lt;/a&lt;/li&gt;
              &lt;li&gt;&lt;a href="http://www.pikachoose.com"&gt;&lt;img src="../../40.jpg"/&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="http://www.pikachoose.com"&gt;&lt;img src="../../50.jpg"/&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>I want to get the index of "li" tag clicked. </p>
  
  <pre><code>  $("#pikame li").size(); 
  </code></pre>
  
  <p>will return me total number of "li". But i want to get index of that "li"</p>
  
  <p>Like if image 40.jpg is clicked then i want to get 3(index starting from 0,1,2 so on...).</p>