Possible Duplicate:
JQuery. How to load inputs values to an array?
I would like to retrieve the value of all the inputs in one array, so I put
var inputs = $('input').val();
var store = [];
$(inputs).each(function(){
$(store).push($(this));
}
);
But, when I put it in my console and alert the content, I get an undefined message. Anybody has an idea ?
You may use
.map()method: