title: How to select multiple table cell tags with jQuery?
body: <p><strong>UPDATE</strong>: This problem is when I create this table over an <strong>about:blank</strong> page and use the console in Chrome. Trying it in JSFiddle works as expected.</p>
  
  <p><strong>UPDATE2</strong>: Disregard this. As @Mike C commented, I wasn't loading jQuery, and Chrome dev tools have a built in function called '$'. In other words, it wasn't working because the Chrome dev tools didn't know I was writing jQuery. My mistake. 
  Thank you all for your help.</p>
  
  <p>This is simply straightforward. I have something like this:</p>
  
  <pre><code>&lt;table cellpadding="5" cellspacing="0" width="100%"&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td &gt;1&lt;/td&gt;
              &lt;td &gt;2&lt;/td&gt;                 
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;3&lt;/td&gt;
              &lt;td&gt;4&lt;/td&gt; 
          &lt;/tr&gt;           
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>When I try to get all the <code>&lt;td&gt;</code>, with <code>$("td")</code>, I only get the <strong>first</strong> element, while using <code>document.getElementsByTag("td")</code> I get <strong>all</strong> the elements.</p>
  
  <p>In the jQuery documentation, it says that <code>$("tagName")</code> is enough to get the tag element, but when I try it, only returns the first element.</p>
  
  <p>Why does this happen? Is there a jQuery <strong>selector</strong> that has the same behaviour than <code>getElementsByTag</code>? </p>
  
  <p>Thanks in advance.</p>