What’s the most elegant way to get this array
[10, 20, 30, 40, 50]
out of this list
<ul>
<li value="10">Item One</li>
<li value="20">Item Two</li>
<li value="30">Item three</li>
<li value="40">Item Four</li>
<li value="50">Item Five</li>
</ul>
using jQuery.
****edit****
ok the glove has been thrown down…
no library 3 lines of code…
epicly faster
and using jquery’s map function…
and they are both equally as fast..

http://jsperf.com/testing-stuff