Ad
  • Custom User Avatar

    for(member in data) only gives the index of the item in the array, not the item itself. This is shown by printing member (using console.log(data)).

    To reference the actual item, you must do data[member].

    To fix this, do something like the code listed below:

    for(x in data) { 
    var member = data[x]
    ...