i've got a simple xml file (called by ajax) that contains only:
<result>1</result>
with jquery, i can get the value (1) of result?
thanks! Rob
i've got a simple xml file (called by ajax) that contains only:
<result>1</result>
with jquery, i can get the value (1) of result?
thanks! Rob
jQuery.get('myxml.xml', function(xml){
var result = jQuery(xml).text();
alert(result);
});
$.ajax({
url: '/foo.xml',
success: function(xml) {
alert($(xml).find('result').text());
}
});