I can't get li elements' index?
<p>This is my list..</p>

<pre><code>&lt;li class="haftalar"&gt;&lt;a value="7" class="click" href="#" title="7. Hafta Maç Özetleri"&gt;7. Hafta&lt;/a&gt;&lt;/li&gt;
&lt;li class="haftalar"&gt;&lt;a value="8" class="click" href="#" title="8. Hafta Maç Özetleri"&gt;8. Hafta&lt;/a&gt;&lt;/li&gt;
</code></pre>

<p>I want to get index as clicked li element's and class equaled to "haftalar".</p>

<p>I'm using this code but I can't get my want.</p>

<pre><code>$(".click").toggle(function(){
  index = $(this).index();
}
</code></pre>
