How can i know which class was selected via jQuery & JS
<p>I have a list with links:</p>

<pre><code>&lt;li class="link-1"&gt;&lt;a href="#"&gt;One&lt;/a&gt;&lt;/li&gt;
&lt;li class="link-2"&gt;&lt;a href="#"&gt;Two&lt;/a&gt;&lt;/li&gt;
&lt;li class="link-3"&gt;&lt;a href="#"&gt;Three&lt;/a&gt;&lt;/li&gt;
..
</code></pre>

<p>user clicks on any link, then with jQuery I want to display the content of the link.. somthing like:</p>

<pre><code>$(".link-??? a").click(function() {
    alert($(".link-??? a").html());
})
</code></pre>

<p>something like this. I am not going to create X function (as the number of the links), so what can I do? I should replace the <code>???</code> in somtehing else..</p>
