jQuery: copying element attributes to another attribute of the same element
<p>I've got a list of links, all in the same class, each with a custom argument ("switch-text"). My script should copy the text of the custom argument to the text of each link and replace it ("Pick A" should become "Pick A Please").</p>

<p>It works fine with only 1 link, but when I add several, they all get switched to the first argument. ("Pick B" should be replaced by "Pick B Please", but it doesn't).</p>

<p>I could probably solve this using each(), but I'm preferably looking for a simple, single jQuery line that does it, and I'm baffled I haven't yet found out how to achieve this.</p>

<p>Can somebody help? Thanks!</p>

<pre><code>&lt;script src="http://code.jquery.com/jquery-latest.min.js"&gt;&lt;/script&gt;
&lt;script&gt;
$(document).ready(function() {
  $(".switcher").text( $(".switcher").attr("switch-text") );
});
&lt;/script&gt;
&lt;a href="a" class="switcher" switch-text="Pick A Please"&gt;Pick A&lt;/a&gt;&lt;br&gt;
&lt;a href="b" class="switcher" switch-text="Pick B Please"&gt;Pick B&lt;/a&gt;&lt;br&gt;
</code></pre>
