Need the count of the particular <li> tag clicked
<pre><code>&lt;ul&gt;
    &lt;li&gt;&lt;div&gt;&lt;a href="#"&gt;line a&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
    &lt;li&gt;&lt;div&gt;&lt;a href="#"&gt;line b&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
    &lt;li&gt;&lt;div&gt;&lt;a href="#"&gt;line c&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
    &lt;li&gt;&lt;div&gt;&lt;a href="#"&gt;line d&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
    &lt;li&gt;&lt;div&gt;&lt;a href="#"&gt;line e&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>The output that I need is to get the position(count) of the <code>&lt;li&gt;</code> tag. I cant use the <code>index()</code> for this.
For eg., if I click on "Line a", the output I need to get is "1", for "Line b" I need "2"; and so on.</p>

<p>I cant use the index().</p>
