title: jquery - Read a text file?
body: <p>I have an html file that I'd like to open and read from, but I'm not entirely sure how to do that... Basically, it's a fairly large file (big.html), and, in a separate file (titles.html), I have some jquery code that I'd like to use to find certain elements (namely, h2 tags) and get the inner text from those tags and write just that text to titles.html... I'm not sure, particularly, how to open a separate file and read from it, and secondly, I'm not sure if the code below will work when it comes to getting the text within the h2 tags...  </p>
  
  <pre><code>$(document).ready(function() {
      $("h2").each(function() {
          var title = $(this).text();
          $("#mydiv").append(title);
      });
  });
  
  ...
  
  &lt;div id="mydiv"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I'm a bit confused how to do that with jquery... I'm pretty new to the whole thing, so I'm not even sure it's possible... </p>