$('form').on('change', 'select', function() {
$(this).parent().next().find('input').prop('disabled', this.value === 'No');
});
document.querySelector('form').addEventListener('change', ({ target: t }) => {
if (t.tagName === 'SELECT') {
const { value } = t;
(t = t.parentNode.nextElementSibling) &&
(t = t.querySelector('input')) &&
(t.disabled = value === 'No');
}
});
.modal-wrapper {
position:fixed;
display:flex;
align-items:center;
justify-content:center;
top:0px;
left:0px;
width:100vw;
height:100vh;
}
<div class="modal-wrapper">
<div class="modal">
</div>
</div>
const elem = Array
.from(document.querySelectorAll('.wrap .price'))
.find(n => n.textContent === price);
if (elem) {
...
const elems = Array.prototype.filter.call(
document.querySelectorAll('.wrap .price'),
n => n.innerText.includes(price)
);
if (elems.length) {
...
хз как правильно его называтьПрямо на странице написано - это конструктор. Там же нет никаких расчётов, только подбор параметров.