HTML:
<table id="tb">
<tr>
<td>1.1</td>
<td>1.2</td>
</tr>
<tr>
<td>2.1</td>
<td>2.2</td>
</tr>
</table>
JS:
$("#tb tr").click(function(){
var data = $(this).children().eq(0).text();
window.alert(data);
});
HTML:
<table id="tb">
<tr>
<td>1.1</td>
<td>1.2</td>
</tr>
<tr>
<td>2.1</td>
<td>2.2</td>
</tr>
</table>
JS:
$("#tb tr").click(function(){
var data = $(this).children().eq(0).text();
window.alert(data);
});