I want to get the values of the "name" and the "team" and the "position" etc. and i know i have to do it with two loops right? but i dont exactly know how...
my code looks like this:
function getPlayersOfChosenTeam(team, nameOfPlayersTable){
$.ajax({
url:'getPlayersOfChosenTeam.php',
type:'post',
data:{'team':team, 'nameOfPlayersTable':nameOfPlayersTable},
success: function (res) {
console.log(res);
}
});
}
and my res data looks like:
[
{"name":"R. Burnell","team":"Dortmund","position":"GK","points":"4"},
{"name":"R. Weidenfeller","team":"Dortmund","position":"GK","points":"45"}
]
Thanks for any hint...
greetings