Within my C program, I am working with the following XML data:
<apStats><command chart_num="0">750</command><command chart_num="1">400</command></apStats>
.
$.ajax({
type: "POST",
dataType: "xml",
url: getUrl('/GetPeriodicStats/'),
data: XML.innerHTML,//stats_requests,
success: function(c){
$(c).find('command').each(function(){
//I need to find the value of the command element with attribute chart_num="0". What code should I use here?
});
});
I have included my question within the code.