Jquery get attribute of few ul to create another attribute
<p>I have the following HTML:</p>

<pre><code>&lt;ul actualpage=0&gt;
&lt;li/&gt;
&lt;li/&gt;
....
&lt;/ul&gt;

&lt;ul actualpage=0&gt;
&lt;li/&gt;
&lt;li/&gt;
....
&lt;/ul&gt;
</code></pre>

<p>Im trying to get the value of actualpage of each ul and create a new attribute. Its easy but not in one jquery sentence... Its possible? Until now i have the following line (between ## simbols the missing part that i need.</p>

<pre><code>    /*
select all uls with attribute actualpage and create a new attribute on each with the current actualpage value
    */

$('ul[actualpage]').attr('newactualpage',##Current value of actualpage attr of UL##);
</code></pre>
