Регистрация

Регистрация

let techAgree = document.querySelector('#tech_agree'); let submit = document.querySelector('#btn_submit'); const searchItems = () => { techAgree = document.querySelector('#tech_agree'); submit = document.querySelector('#btn_submit'); }; const init = () => { if(!submit) { setTimeout(() => { searchItems(); init(); }, 10); } else { submit.classList.add('v-btn--disabled'); techAgree.addEventListener('change', (e) => { if(techAgree.checked) submit.classList.remove('v-btn--disabled') else submit.classList.add('v-btn--disabled'); }); } }; init();