Reading content from an element then appending it elsewhere

Reading content from an element then appending it elsewhere

Hello. I've done a bit of searching but haven't found exactly what I need.

I'm trying to get the content from inside <address> elements, then place the content in a link, that will get sent to Google maps, after the <address> element.

There will be multiple addresses on the same page.

For example:

<address>Some address</address>


would become

<address>Some address</address><a href="http://maps.google.com/maps?hl=en&q=Some address">Blah Blah</a>


I imagine I need to use some combination of .clone and .append, but I'm not sure how.

Any help would be greatly appreciated.