Javascript/jquery create array from elements with same rel?
<p>How can you create an array with from a set of elements with same rel?</p>

<p>Eg:</p>

<pre><code>&lt;a rel='array' id='2' url='aa'&gt;&lt;/a&gt;
&lt;a rel='array' id='5' url='bb'&gt;&lt;/a&gt;
&lt;a rel='array' id='8' url='cc'&gt;&lt;/a&gt;
</code></pre>

<p>Array:</p>

<pre><code>[2] &gt; aa
[5] &gt; bb
[8] &gt; cc
</code></pre>

<p>I put each URL as value just to use something. But having the IDs ordered should be enough.</p>

<p>How can this be done?</p>
