This is some code i made up following a course:
$(document).ready(function(){
$.ajax({
type: 'GET',
dataType: 'XML',
url: 'user_timeline.xml',
success: processXML
});
function processXML(response){
var status = $(response).find("status");
for (var i=0; i < status.length; i++){
var text = $("text",status[i]).text();
$('#status').append("<p>" + text + "</p>");
};
}
});
It works fine, but can someone explain this:
$("text",status[i])
Does it search/select the status array for the key 'text'?
I want to know what i'm doing, not just doing it...