I have dynamic price change table, and I want to change my price list from data json dynamically,
I want to get data.Items.Onelow and data.Items.Onehigh values from json data with dynamic variable; But I have problem; My codes under below.
$.ajax({
type: 'GET',
url: "data.json",
dataType: "json",
contentType: "application/json",
cache: false,
success: function(data) {
var a = ["One", "Two"];
a.forEach(function(entry) {
var entry_data_low = data.Items.entry+low; // HERE Problem
var entry_data_high = data.Items.entry+high; // HERE Problem
});
}
},2000);
});
});
lowandhighare undefined, I guess?