title: Load body of another html to jQuery and store as javascript var
body: <p>What I want to do is to read a body content of another html and save it as a var in a javascript function. What I currently have, using jQuery, is <code>$(id of this document).load(link goes here)</code>. For example:</p>
  
  <p><code>$("#test").load("/form.cgi?A1=?")</code></p>
  
  <p>The form only has a body that contains <code>&lt;body&gt;some value&lt;/body&gt;</code></p>
  
  <p><code>&lt;a id="test"&gt;hello&lt;/a&gt;</code> This method works great because I don't have to use DOM at all. </p>
  
  <p>However, I would like to store the data into a javascript variable. So, I think I have half of this done. Could someone shed some light on how to do so? </p>
  
  <p>Ideally, something like:</p>
  
  <p>'function(test)
  {</p>
  
  <p>var x = $.load(test);</p>
  
  <p>//manipulate x such as parseInt/parseFloat, etc</p>
  
  <p>}
  '
  Thanks!</p>