I have a un-ordered list containing links with the same class and a unique ID, I need to add all those ID's to an array in javascript with.
<ul>
<li><a class="item" id="10" href="#"></a></li>
<li><a class="item" id="11" href="#"></a></li>
<li><a class="item" id="12" href="#"></a></li>
<ul>
How could I do this?