add class to all links that link to a certain domain with js (jquery)
<p>If I have a bunch of links like this:</p>

<pre><code>&lt;a href="foo.com"&gt;blah&lt;/a&gt; and this &lt;a href="example.com"&gt;one&lt;/a&gt; and here is another &lt;a href="foo.com"&gt;&lt;/a&gt;.
</code></pre>

<p>How would I add a class to all the links that link to foo.com?</p>
