jQuery load div then when link is clicked pass variables
<p>I'm trying to load a php inside a <code>div1</code> using jquery. The code I have so far below works fine for loading the initial <code>div1</code>.</p>

<pre><code>&lt;script type="text/javascript"&gt;
$(document).ready(function(){
$("#div1").load('load.php');
});
&lt;/script&gt;

&lt;div id="div1"&gt;&lt;/div&gt;
</code></pre>

<p>Inside <code>load.php</code> I will have links like this below</p>

<pre><code>&lt;a href="load.php?id=123456"&gt;Link 1&lt;/a&gt;
&lt;a href="load.php?id=1234567"&gt;Link 2&lt;/a&gt;
&lt;a href="load.php?id=12345678"&gt;Link 3&lt;/a&gt;
</code></pre>

<p>What I'm trying to do is on the page the <code>div1</code> is loaded, when the links load inside the <code>div1</code> I want to be able to click on the links and it will pass the <code>?id=</code> var inside the <code>div1</code> and re-load <code>load.php?id= var here</code>.</p>

<p>How would I go about doing this?</p>
