i am trying to get the value in the next column ie Link1 labelwhen clicking on link1? how to do this with jquery? i tried:
$("#Link1").clicked( function()
{
alert($("td(2) label.attr('text')"));
});
<table>
<tr>
<td>
<a id="link1">Link1</a>
</td>
<td>
<label>
Link1 label</label>
</td>
</tr>
<tr>
<td>
<a id="link2">Link2</a>
</td>
<td>
<label>
Link2 label</label>
</td>
</tr>
</table>
Use this:
Hope this helps.