title: get id of ul element using class name of li in jquery
body: <p>I  have the following html code</p>
  
  <pre><code>   &lt;ul id="div0"&gt;
      &lt;li id="INT" class="demographics"&gt;MemberID&lt;/li&gt;
      &lt;li id="VARCHAR" class="demographics"&gt;Name&lt;/li&gt;
      &lt;/ul&gt;
     &lt;ul id="div1"&gt;
     &lt;li id="INT" class="lab"&gt;DOB&lt;/li&gt;
     &lt;li id="INT" class="lab"&gt;ZipCode&lt;/li&gt;
     &lt;/ul&gt;
     &lt;ul id="div2"&gt;
    &lt;li id="VARCHAR" class="labresult"&gt;Payroll&lt;/li&gt;
     &lt;li id="INT" class="labresult"&gt;DrID&lt;/li&gt;
    &lt;ul&gt;
  </code></pre>
  
  <p>in  jquery i want to get the id of ul element using class name of li element,</p>
  
  <p>for example </p>
  
  <pre><code>             $('.demographics').click(function(){
                   // here i want the id of ul tag containing class demographics
                    });
  </code></pre>