Skip to content

Instantly share code, notes, and snippets.

Created July 6, 2011 15:05
Show Gist options
  • Save anonymous/1067456 to your computer and use it in GitHub Desktop.
Save anonymous/1067456 to your computer and use it in GitHub Desktop.
$.each(arrayFromPHP, function (i, elem) {
console.log(elem.User);
console.log(elem.EmailAddress);
$('#emailaddresses').append($("<option/>"), {
value: elem.EmailAddress,
text: elem.User
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment