title: Get id of clicked element using jquery
body: <p>I have a series of select boxes within a table. The html is:</p>
  
  <pre><code>&lt;td id="1"&gt;
    &lt;select id="a" name="xxx"&gt; 
       &lt;option ... &lt;/option&gt;
    &lt;/select&gt;
  &lt;/td&gt;
  
  &lt;td id="2"&gt;
     &lt;select id="b" name="yyy"&gt; 
       &lt;option ... &lt;/option&gt;
     &lt;/select&gt;
  &lt;/td&gt;
  
  ... etc.
  </code></pre>
  
  <p>When a select box option is changed, how can i use jquery to return the id of the select box and the td?</p>
  
  <p>I think it should be something like:</p>
  
  <pre><code>$(document).ready(function() {
  
      $('select').change(function() { 
      var id = $(this).attr('id');
      return false; 
      });
  });
  </code></pre>
  
  <p>Working <a href="http://jsfiddle.net/6Pq6F/" rel="nofollow"><code>Fiddle</code></a></p>