I would like to click on a anchor tag (a href) in a table and extract the contents of the next cell (or any specifc cell in that row)
$(".clCode").click(function(){
alert( $(this).text() );
return false;
});
<table>
<tr>
<td class='clCode'><a href="#">Select</a></td><td>Code123</td>
</tr><tr>
<td class='clCode'><a href="#">Select</a</td><td>Code543</td>
</tr><tr>
<td class='clCode'><a href="#">Select</a</td><td>Code987</td>
</tr>
</table>