I have a table with one link as follows
<td>
<a href="#" class="topiclink">@item.Topic</a>
</td>
I want to select data of @item.topic. I tried using
$('.topiclink').click(function (e) {
var val = $(this).closest('a');
alert(val)
});
and many others but nothing seems working in this case.Thank for the help.