A common situation is where I'll need to put values from multiple inputs into an array. Is there a one-liner, or simpler method, that can accomplish this?
var array = [];
$(".foo").each(function(){
array.push($(this).val());
});
I'm imagining something like this:
var array = $(".foo").getEach('val');