I'd like to retrieve some input box' value of my page to proceed to an ajax request, so I wrote :
var account_data = ['firstname', 'lastname', 'e-mail'];
$.each(account_data, function(index,value){
var tmp = '[name='+value+']';
data.value = $(tmp).val();
});
But it doesn't work when I alert the values in my console (it returns undefined)