I am encountering an issue with the code below:
$.ajax({
type: "POST",
dataType: "xml",
url: getUrl('/GetPeriodicStats/'),
data: XML.innerHTML,//some xml,
success: function(c)
{
After receiving the XML data in the client-side, I attempt to parse it to extract specific information. The XML structure is as follows:
<command name=GetApLevelNumUlBytesSum all=1 >650</command>
I then try to retrieve the value 650 and display it in an alert using either of the following methods:
$(c).find('command').each(function(){
var val = $(this).text();
alert(val);
});
var val = $(c).text();
alert(val);
However, I do not receive any alerts at all. Could you please help me identify what went wrong?