$(document).ready (
function () {
$("#vehicles_year_select_id").bind("change", function () {
$("#vehicles_make_select_id").empty();
$.get("vehicles_make.php", {vehicles_year_id: $("#vehicles_year_select_id").val()}, function (data) {
data = JSON.parse(data);
for(var id in data) {
$("#vehicles_make_select_id").append($("<option value='" + id + "'>" + data[id] + "</option>"));
}
});
});
});
$(document).ready (
function () {
$("#vehicles_year_select_id").bind("change", function () {
$("#vehicles_make_select_id").empty();
$.get("https://moreparts4less.com/wp-content/themes/chromium/woocommerce/single-product/vehicles_make.php", {vehicles_year_id: $("#vehicles_year_select_id").val()}, function (data) {
console.log(data);
});
});
});
$(document).ready (
function () {
$("#vehicles_year_select_id").bind("change", function () {
$("#vehicles_make_select_id").empty();
$.get("https://moreparts4less.com/wp-content/themes/chromium/woocommerce/single-product/vehicles_make.php", {vehicles_year_id: $("#vehicles_year_select_id").val()}, function (data) {
data = data!="" ? JSON.parse(data) : {};
for(var id in data) {
console.log(data);
console.log(id);
console.log("--");
}
});
});
});
for(var id in data) {
console.log(data);
console.log(id);
console.log(--);
}
for(var id in data) {
$("#vehicles_make_select_id").append($("<option value='" + id + "'>" + data[id] + "</option>"));
}
for(var id in data) {
$("#vehicles_make_select_id").append($("<option value='" + id + "'>" + data[id] + "</option>"));
}