how to simplify my code using jquery?
<p>I want append <code>&lt;span&gt;&lt;/span&gt;</code> tag in my every <code>&lt;a&gt;</code> tag:</p>

<p><strong>now:</strong></p>

<pre><code>&lt;a href=#&gt;aaa&lt;/a&gt;
&lt;a href=#&gt;bbb&lt;/a&gt;
&lt;a href=#&gt;ccc&lt;/a&gt;
</code></pre>

<p><strong>I want:</strong></p>

<pre><code>&lt;a href=#&gt;&lt;span&gt;aaa&lt;/span&gt;&lt;/a&gt;
&lt;a href=#&gt;&lt;span&gt;bbb&lt;/span&gt;&lt;/a&gt;
&lt;a href=#&gt;&lt;span&gt;ccc&lt;/span&gt;&lt;/a&gt;
</code></pre>

<p>now ,i using below codes to implement it:</p>

<pre><code>$(function(){
    var buttons = $("a");
    var text=buttons.text();
    buttons.text("");
    buttons.prepend("&lt;span&gt;"+text+"&lt;/span&gt;");
});
</code></pre>

<p>I think this codes is not good,how to simplify it?</p>

<p>thanks :)</p>
