Change the href link of an anchor with the text using jquery
<p>if I have:</p>

<pre><code>&lt;a href="#"&gt;Title &lt;/a&gt; 
&lt;a href="#"&gt;Title2 &lt;/a&gt; 
</code></pre>

<p>I want on the first anchor the href to be Title and on the second one Title2</p>

<p>I've tried using the <code>attr("href" function() { return this.text; });</code></p>
