title: jquery selector for td in a table
body: <p>i want to get a event that will fire when i click inside a td of a html table</p>
  
  <p>i had this:</p>
  
  <pre><code> ('td').live('click', function() {
              alert($(this).attr('id'));
          });
  </code></pre>
  
  <p>which works but this fires inside the 'th" cells as well (not sure why).</p>
  
  <p>is there any selector that just fires inside td's and not th's.  I tried this:</p>
  
  <pre><code> ('tbody td').live('click', function() {
              alert($(this).attr('id'));
          });
  </code></pre>
  
  <p>but that didn't seems to stop this firing for the th's.</p>
  
  <h2>EDIT:</h2>
  
  <p>I figured out the issue..  the problem is that the whole table was inside another table so even the "th" was actually inside a "td" of a larger table.</p>
  
  <p>The solution was to do this:</p>
  
  <pre><code> $('table.calendar td').live('click', function() {
              alert($(this).attr('id'));
          });
  </code></pre>