title: Get ID from <td> using jQuery
body: <p>I have <code>&lt;td id="checkb1" class="checkba"&gt;</code></p>
  
  <p>I want to get the value of the id when I click on </p>
  
  <pre><code>$('.checkba').click(function() {
  
      var my_var = $('.checkba').attr('id');
      alert(my_var);
  
  });
  </code></pre>
  
  <p>The alert shows checkba not the id, checkb1.</p>
  
  <p>Appreciate all assistance.</p>
  
  <p>Thanks
  Jean</p>