var factorial = function fac(n) { return n < 2 ? 1 : n * fac(n - 1); };
console.log(factorial(100));
potassiumInput.oninput = function() {
if(typeof(potassiumInput.value) != '' || typeof(potassiumInput.value) != "string") {
total = potassiumInput.value * 100;
} else {
potassium.innerHTML = 'Ошибка!';
}
potassiumSelect.oninput = function() {
let b = total;
potassiumValue = Math.round(b/this.options[this.selectedIndex].value) + ' гр';
};
};
<!DOCTYPE html>
<html>
<head>
<title>Testing</title>
</head>
<body>
<script>
function srav(){
var diag_nap_uchr = document.getElementById('pass-old');
var diag_osn = document.getElementById('pass-new');
if (diag_nap_uchr.value === diag_osn.value){
alert ("Совпадение");
}
}
</script>
<input type="password" id="pass-old" class="field-custom" placeholder="Старый пароль" name="password" value="123456">
<input type="password" id="pass-new" class="field-custom" placeholder="Новый пароль" name="password" oninput="srav()">
</body>
</html>
success: function(data) {
alert("А ЭТО ПОКАЖЕТ? " + data.m_shop + ' ' + data.m_curr + ' ' + data.m_desc + ' ' + data.m_sign);
// ВОТ ЭТО НЕ РАБОТАЕТ
document.getElementById("m_shop_id_" + market_id).value = data.m_shop;
document.getElementById("m_curr_id_" + market_id).value = data.m_curr;
document.getElementById("m_desc_id_" + market_id).value = data.m_desc;
document.getElementById("m_sign_id_" + market_id).value = data.m_sign;
}