I am trying to get the value in the next column, i.e. Link1, when you click on link1? how to do it using 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>
source share