Ich habe folgendes:Wie ein JSON-Schlüssel dynamisch mit jQuery zugreifen
var parsed_contacts = jQuery.parseJSON(conts);
$('#contacts > li > a').click(function(event){
target_id = event.target.id; //yields a Google App Engine entity key bound to a <a> id property. (e.g "agdldHJlYnVncg0LEgdDb250YWN0GFgM", with quotes)
console.log(parsed_contacts[target_id]); //Yields undefined
});
Und hier ist, was ich von console.log(parsed_contacts)
erhalten:
Wie soll ich vorgehen? Vielen Dank im Voraus!
Ha, das ist es! Vielen Dank! : D –
Gern geschehen :) – elo80ka