Adding links to specific phrases or keywords in jQuery
<p>I am trying to turn specific words or phrases into links with jQuery.  So far I have only been successful in changing a span with a class="link" to an anchor tag after a hover event.   My problem is that I want them to change when the page loads.  As an added benefit it would be nice to target any words or phrases without having to put them in spans.</p>

<pre><code>$('span.link').hover(function () {

    $(this).replaceWith("&lt;a href='http://mydomain.com'&gt;" + $(this).text() + "&lt;/a&gt;");

});
</code></pre>

<p>Works only when they hover over the text, but what I really want is something like this:</p>

<pre><code>var keyword = 'my keyword';

var link = $(document).find(keyword);

$(document).ready(function() {
    link.replaceWith("&lt;a href='http://mydomain.com'&gt;" + $(this).text() + "&lt;/a&gt;");
 });
</code></pre>
