如何顯示從jQuery Ajax調用返回的此SQL字符串的所有價格/數量組合?jquery從XML提取值
<transactions>
<transaction>
<price>999.99</price>
<qty>999</qty>
<transaction>
</transactions>
JavaScript代碼:
$.ajax({
url: 'myURL',
dataType: 'xml',
type:'POST',
data: 'data=' + someData,
success: function(xml){
$(xml).find('transactions').each(function() {
alert(something);
});