Jquery selector data retrival in variable, in another different page
<p>How can we use Jquery to read certain page content in a variable on a different page? If for example we want to read div.tag1 from a page into another page but in a variable( ie i dont want to load it into the page but manipulate it so store it in variable)</p>

<p>Eg:  file1.html have(say)</p>

<pre><code>&lt;div class="tag1"&gt; Hello world &lt;/div&gt;
&lt;div class="tag2"&gt; Hello Boys &lt;/div&gt;
&lt;div class="tag3"&gt; Hello Girls &lt;/div&gt;
</code></pre>

<p>Now I want page2 to have Jquery script that will store the content of div.tag1 in a variable.</p>

<p>This is what I need in file2.html : 
// without loading it to any page ie without using load.</p>

<pre><code>&lt;script type="text/javascript"&gt;
var filename = "file1.html";
var myData = // Code to retrieve div.tag1 from file1.html( ie filename)
document.write(myData); // for the time being.. later it will go in Database.
</code></pre>

<p></p>

<p>Any help will be appreciated.</p>
