Let's say I have code.
<tbody>
  <tr id="a1">
    <td>a2</td>
    <td>a2</td>
  </tr>
  <tr id="a3">
    <td>4d</td>
    <td>a23</td>
  </tr>
</tbody>
If I want to get id value of the row I clicked.
<script>
$('tr').click(function(){
  var a = //something values
  alert(a);
});
</script>
What should I put inside something?
For another question(this is original problem of above question), when I have below code
<tbody>
  <tr>
    <td>a2</td>
    <td>a2</td>
  </tr>
  <tr>
    <td>4d</td>
    <td>a23</td>
  </tr>
</tbody>
And if I want second td value of the row I click which script code should I use?
 
     
     
     
    