This is my list:
<ol>
<li>Audi</li>
<li>Kawasaki</li>
<li>Vauxhall</li>
</ol>
What is the jQuery function that will transform the list items into an array?
var cars;
$('li').map(function() {
// converts the ordered list into a javascript array named 'cars'
});
Thanks!