let valute = {
AMD: {ID: 'R01060', NumCode: '051', CharCode: 'AMD', Nominal: 100, Name: 'Армянских драмов', Value: 13.7825},
AUD: {ID: 'R01010', NumCode: '036', CharCode: 'AUD', Nominal: 1, Name: 'Австралийский доллар', Value: 13.7825}
};
let string = '';
for (let [key, _value] of Object.entries(valute)) {
string += `${key}:\n`;
for (let [prop, value] of Object.entries(_value)) {
string += `${prop}: ${value}\n`;
}
string += '\n';
}
console.log(string);
$result = '';
while($row = $query->fetch(PDO::FETCH_ASSOC)) {
$result = "<option>".$row['fullname'] . '</option>';
}
<div class="viewing-wrapper">
<div class="viewing-container">
<div class="viewing-title">
Выберите абоненета из списка
</div>
<div class="viewing-list">
<div class="viewing-select-wrap">
<select class="viewing-select">
<?= $result ?>
</select>
<button class="button btn-show">Показать</button>
</div>
</div>
</div>
</div>
$( document ).ready(function() {
// ваш скрипт
});
$(document).ready(function() {
btnSubmit.addEventListener("click", () => {
let fullName = itemInputs[0].value,
phone = itemInputs[1].value,
street = itemInputs[2].value,
houseNumber = itemInputs[3].value;
console.log(fullName,phone,street,houseNumber);
});
$ajax({
url: "php/data_processing.php",
type: "POST",
cache: false,
data: {"fullName": fullName, "phone": phone, "street": street, "houseNumber": houseNumber },
dataType: "html",
success: function () {
console.log("Вывод чипсов");
}
});
});
if (inputs[el].value == "") el++; if (inputs[el].value.match(/[А-я]/)) {