I have an array with HTML elements from a selector. Looks like this:
var selection = $('.features_items');
// selection = [div.features_item, div.features_item];
The div looks like this:
<div class="features_item selected" value="2">
Now I want to get all values from the div's in the array: [2,3]
selectionisn't an array -- it's an array-like jQuery object. This is only significant if you try to use methods likeshiftorpop, which won't work on jQuery objects.