Jquery div is selected by id, choose the value of class
<p>how do i do that ? 
my html structure looks like this
EDIT: i have updated to html so it fits the rules.</p>

<pre><code>&lt;td id="1" class="LinkWrap"&gt;&lt;a href="" class="link"&gt;link&lt;/a&gt;&lt;/td&gt;
</code></pre>

<p>i use this code:</p>

<pre><code>$(".link").click(function() {
$(this).parent();
//some ajax code
});
</code></pre>

<p>To select the td by the id LinkWrap, but i need the value of the class, 
the class' value is fetched by php &amp;&amp; mysql and is the id of the element thats i fetched. therefor the value is not a constant i and i cant just say chose class with value 1 it could be 2 or 5932.</p>

<p>i need that value to my ajax script so i can insert when the user clicks that link.
if theres a better method please let me know :)</p>
