jQuery: How can I alter SOME html but keep the rest?
<p>Using jQuery, I want to load a page from my server, modify the links (anchors) but keep the rest of the HTML the same. Is this possible with jQuery?</p>

<p>Example:</p>

<p>I want this code...</p>

<pre><code>&lt;div&gt;
    text 1&lt;a href="link1.html"&gt;link 1&lt;/a&gt;&lt;br/&gt;
    text 2&lt;a href="link2.html"&gt;link 2&lt;/a&gt;&lt;br/&gt;
    text 3&lt;a href="link3.html"&gt;link 3&lt;/a&gt;&lt;br/&gt;
&lt;/div&gt;
</code></pre>

<p>...to become this code...</p>

<pre><code>&lt;div&gt;
    text 1&lt;a href="link4.html"&gt;link 1&lt;/a&gt;&lt;br/&gt;
    text 2&lt;a href="link5.html"&gt;link 2&lt;/a&gt;&lt;br/&gt;
    text 3&lt;a href="link6.html"&gt;link 3&lt;/a&gt;&lt;br/&gt;
&lt;/div&gt;
</code></pre>

<p>I want the WHOLE code, including the DIVs.</p>

<p>Is this possible with jQuery? Please help! Thanks in advance. :)</p>

<p>Edit: Each page I load will be different. I want to pull in the full HTML, change the anchor HREFs, then return the results. I can't use a template because each page will be different.</p>
