jQuery: How can I alter SOME html but keep the rest?
===

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?

Example:

I want this code...

    <div>
        text 1<a href="link1.html">link 1</a><br/>
        text 2<a href="link2.html">link 2</a><br/>
        text 3<a href="link3.html">link 3</a><br/>
    </div>
...to become this code...

    <div>
        text 1<a href="link4.html">link 1</a><br/>
        text 2<a href="link5.html">link 2</a><br/>
        text 3<a href="link6.html">link 3</a><br/>
    </div>

I want the WHOLE code, including the DIVs.

Is this possible with jQuery? Please help! Thanks in advance. :)

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.