Using jQuery to replace one tag with another

got a quandary i was hoping you kind folks could help me out with...   goal: Using jQuery, I'm trying to replace all the occurrences of: <code> ... </code> with: <pre>...