title: get id from list of elements with jquery
body: <p>I've the next HTML code and I would  to get the id attribute from a HTML list( id="seconde") whith jquery. </p>
  
  <pre><code>     &lt;div id="navigation"&gt;
  &lt;ul    class=" sf-menu sf-vertical " &gt;
              &lt;li &gt;
  
                  &lt;a href="#"&gt;Pollo&lt;/a&gt;
                  &lt;ul&gt;
                      &lt;li&gt;
                          &lt;a href="#"&gt;Prime lavorazioni&lt;/a&gt;
  
                      &lt;/li&gt;
                      &lt;li id = "seconde"&gt;
                          &lt;a href="#"&gt;Seconde lavorazioni&lt;/a&gt;
  
                      &lt;/li&gt;
                      &lt;li&gt;
                          &lt;a href="#"&gt;Terze lavorazioni&lt;/a&gt;
  
                      &lt;/li&gt;
  
                  &lt;/ul&gt;
              &lt;/li&gt;
  
  
  
          &lt;/ul&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>Thi is my .js: </p>
  
  <pre><code>    $("ul.sf-menu li ").click(function(){
  
            var oID = $(this).attr("id");
            alert(oID);
          });
  </code></pre>
  
  <p>but doesn't work. any idea? thanks</p>