Ajax

$.ajax({
     url: '<%=request.getContextPath() %>/eac/eacList.do?callMethod=isholdPoHeadIdVerify',
     data: "&headhold="+poheadid+"&submitStatus="+isSubmit,
     cache: false,
     async: false,
     dataType: 'xml',   
     success: function(xmlRoot){     
      var rightNodes = xmlRoot.documentElement.getElementsByTagName('dataNodes')[0].getElementsByTagName('node');
      document.getElementById("verifypoheadishold").value=rightNodes[0].getAttribute('value');
     }
     });

你可能感兴趣的:(Ajax)