title: How do I use jQuery get the ID of the div which has been clicked on?
body: <p>I need to get the ID of the clicked-on div.</p>
  
  <p>Now when I click on status class I an returned undefined id.</p>
  
  <p>Here is my javascript code</p>
  
  <pre><code>jQuery(document).ready(function() {
      $(".status").bind('click', $.proxy(function() {
          var status = $(this).attr('id');
          alert(status);
      }, this));
  });​
  </code></pre>
  
  <p>and HTML</p>
  
  <pre><code>&lt;div class="status" id="s_1"&gt;111111&lt;/div&gt;
  &lt;div class="status" id="s_3"&gt;33333&lt;/div&gt;
  &lt;div class="status" id="s_2"&gt;222222&lt;/div&gt;
  </code></pre>
  
  <p>How should I get the correct id value?</p>