title: How to get the container id in javascript or in jquery
body: <p>I have some HTML blocks look like</p>
  
  <pre><code>&lt;li id="item261"&gt;
      &lt;div class="itemdesc"&gt;
        &lt;a class="icon-hide"&gt;Hide&lt;/a&gt;
      &lt;/div&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>And i have a jquery like </p>
  
  <pre><code>$(document).ready(function()
  {
  $('.icon-hide').click(function(){
            var elemId = $(this).parent().attr("id");         
      });
  });
  </code></pre>
  
  <p>I need the ID of the "li" tag on click of ".icon-hide". how can i achive this? any help..</p>