title: How to get li id?
body: <p>I have</p>
  
  <pre><code>&lt;li data-value="id" id="id"&gt;
    &lt;img src="src" alt="alt" title="title" /&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>Also I have script</p>
  
  <pre><code>$('.item_slider .thumbs').delegate('li:not(.current)', 'click', function() { //при клике
    var id = $(this).attr('id');
    document.getElementById('result').innerHTML = 'ID: ' + id;
    alert($(this).attr('data-value'));
  });
  </code></pre>
  
  <p>Here two ways to get id. But I always get undefined. What's the problem?</p>