I have this html mark up:
<td>
<label for="fadsf"> fadsf</label>
</td>
<td>
<a class="editLink" href="/Admin/MenuManagement?Length=5">Edit</a>
</td>
What i want to do is to select the text in the label. But I find it difficult to do.
I tried this:
$(".editLink").click(function () {
alert(
$(".editLink").prev("td").html()
);
});
But it returns null.
1 Answer