title: jQuery: if ID is equal to statement
body: <p>I'm working on a code that does a action if one of the LI's is selected.
  So if one of the first LI's is 'current' I want to perform an action on it, the code:</p>
  
  <pre><code>&lt;div id="types"&gt;
      &lt;div id="division1"&gt;
          &lt;ul id="selection1"&gt;
              &lt;li id="current"&gt;&lt;a href="#" name="1-1"&gt;&lt;/a&gt; &lt;/li&gt;
              &lt;li&gt;&lt;a href="#" name="1-2"&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#" name="1-3"&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
      &lt;div id="division2"&gt;
          &lt;ul id="selection2"&gt;
              &lt;li&gt;&lt;a href="#" name="2-1"&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#" name="2-2"&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#" name="2-3"&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>jQuery:</p>
  
  <pre><code>if (jQuery("#types div ul:nth-child(1)").attr("ID") == "current") {
      *do this*
  }
  </code></pre>
  
  <p>Anyone has any idea what I'm doing wrong?</p>