title: getElementsByTagName Equivalent in jQuery?
body: <p>I need some help in converting a javascrpipt function into jQuery. Below is my original JS code:</p>
  
  <pre><code>var text = document.getElementsByTagName("pre")[0].innerHTML;
  </code></pre>
  
  <p>After a little research on Stack I was able to come up with this equivalent:</p>
  
  <pre><code>var text = $(data).$('pre')[0].html();
  </code></pre>
  
  <p>Where data is the data I receive in a <code>$.get</code> request, like below.</p>
  
  <pre><code>$.get (
      mypage,
      function parse(data) {
          var raw = $(data).$('pre')[0].html();
      }
  );
  </code></pre>
  
  <p>But that doesn't seem to work and i'm not very good with jQuery.</p>