how do i do that ? my html structure looks like this EDIT: i have updated to html so it fits the rules.
<td id="1" class="LinkWrap"><a href="" class="link">link</a></td>
i 采用该守则:
$(".link").click(function() {
$(this).parent();
//some ajax code
});
To select the td by the id LinkWrap, but i need the value of the class, the class value is fetched by php && 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.
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 :)