$('#select_workspace').on('change', function(){
var workspace = $(this).val();
// ***********************************************
var worktype = $('#select_worktype').val();
// ***********************************************
if(workspace){
$.get(
"ajax.php",
{workspace: workspace, worktype:worktype},
function (data2){
$('#select_position').html(data2);
}
);
}else{
$('#select_position').html('<option disabled selected>Выбор формирования</option>');
}
});
fetch('https://sheetdb.io/api/v1/j0s93lmrv0uwi')
.then(response => response.json())
.then(data => {
console.log(data);
return data;
})
.then((response) => {
let resp = response;
console.log(resp);
console.log(resp[8].KEYWORDS); //так не выходит
})
.catch((err)=>console.log(err))
// Parse settings.data into separate variable
let settings_data = JSON.parse(settings.data);
// Update settings_data object by new value
settings_data.methodProperties.CityName="дол";
// Update settings.data by new stringified value
settings.data = JSON.stringify(settings_data);
// Test
alert(JSON.parse(settings.data).methodProperties.CityName);