Using jQuery to parse XML returned from PHP script (imgur.com API)

后端 未结 2 1471
灰色年华
灰色年华 2021-01-15 19:52

Here\'s my jQuery:

var docname =  $(\'#doc\').val();

function  parseXml(xml)
{
  $(xml).find(\"rsp\").each(function()
  {
    alert(\"success\");
  });
}

$         


        
2条回答
  •  醉酒成梦
    2021-01-15 20:30

    var docname =  $('#doc').val();
    

    Exactly where is this in your code and when will it be evaluated?
    My guess is that it's executed either when the

提交回复
热议问题