I have the following syntax:
$.each(result, function(key, value){
alert(value.first_name);
});
first_name is obviously a value in the array.
what I want/need to do is something like this:
$.each(result, function(key, value){
var column='first_name';
alert(value.column);
});
I want to alert the value in the array that comes from a variable. this obviously fails as it sees column as an array key rather that a variable.
is this possible?
alternatively something like alert(value[2])
will work as well
Thanks,