// api: collection.find{filter, options}
myCollection.find({
'menu.products': {
$in: {
{
'_id': 60475de5ce4dd6151019d574
}
}
}
}, {
projection: {
'menu.products': 1
}
})
const inputSelector = '#kmOutMKAD';
const radioSelector = '[name="delivery"]';
const disabledValue = '1';
$(radioSelector).on('change', function() {
$(inputSelector).prop('disabled', this.value === disabledValue);
});
// или
const input = document.querySelector(inputSelector);
const radios = document.querySelectorAll(radioSelector);
const onChange = e => input.disabled = e.target.value === disabledValue;
radios.forEach(n => n.addEventListener('change', onChange));