title: Getting an element's `id` attribute
body: <p>Can you get the <code>id</code> attribute of a html tag using jQuery or without?</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;ul id="todo" /&gt;
  </code></pre>
  
  <p>How can I get the <code>id</code>, without using <code>jQuery("#todo")</code>?</p>
  
  <p>Is there a way for that? Will <code>attr()</code> work?</p>