title: Getting Div ID on Header Click, Accordion
body: <p>I'm using Jquery accordion to populate a dynatree. I need my accordion div's to populate on click of the header, so that is why I am trying to grab div id. This Jquery works but only when I click inside the expanded div and not the header. Which makes sense because my event is .common click.</p>
  
  <pre><code> $(".common").click(function () {
          var currentID = $(this).attr("id");
          alert(currentID);
      });    
  
   &lt;div id="accordion"&gt;         
      &lt;h3&gt;Project Type&lt;/h3&gt;
       &lt;div id="1" class="common" style="height:150px;"&gt; 
      &lt;/div&gt;
  
      &lt;h3&gt;Ammenities&lt;/h3&gt;
      &lt;div id="2" class="common" style="height:150px;"&gt;  
      &lt;/div&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>I need to figure out how I can get div id on header click. Accordion doesn't play very nicely so if i switch my id and class onto the header, the event doesn't fire. I've tried using <code>$("#accordion .common").click</code> and this doesn't work either </p>