jQuery: How to know the div id value?
<p>I have a div with youtube results as  </p>

<pre><code>  &lt;div id="result" style="display: block;"&gt;

    &lt;div id="lqT_dPApj9U" class="item view-item"&gt;
      &lt;div style="float: left;"&gt;&lt;img class="thumbnail" alt="" src=
      "http://i.ytimg.com/vi/m0SdBmkp9cw/default.jpg" /&gt;&lt;/div&gt;

      &lt;div id="name"&gt;
        &lt;p class="title"&gt;Title goes here&lt;/p&gt;

        &lt;p class="views"&gt;2192501&lt;/p&gt;
      &lt;/div&gt;&lt;input id="video_id" type="hidden" /&gt;
    &lt;/div&gt;

    &lt;div id="hKoB0MHVBvM" class="item view-item"&gt;
      &lt;div style="float: left;"&gt;&lt;img class="thumbnail" alt="" src=
      "http://i.ytimg.com/vi/lqT_dPApj9U/default.jpg" /&gt;&lt;/div&gt;

      &lt;div id="name"&gt;
        &lt;p class="title"&gt;Coca-Cola Happiness Machine&lt;/p&gt;

        &lt;p class="views"&gt;4791156&lt;/p&gt;
      &lt;/div&gt;&lt;input id="video_id" type="hidden" /&gt;
    &lt;/div&gt;
  &lt;/div&gt;  
</code></pre>

<p>Question  </p>

<p>How can I get the value of div id="hKoB0MHVBvM" from result div?  </p>

<p>I tried the following jQuery  </p>

<pre><code>$(function(){
    $('.item').live('click', function(){
        alert($(this).id);
    });
});​
</code></pre>

<p>but it doesn't seem to work</p>
