13 lines
371 B
JavaScript
13 lines
371 B
JavaScript
|
'use strict';
|
||
|
|
||
|
{
|
||
|
(function () {
|
||
|
var checkbox = document.querySelector('.employer-form .form__action .mdl-checkbox__input'),
|
||
|
button = document.querySelector('.employer-form .form__action .mdl-button');
|
||
|
button.disabled = !checkbox.checked;
|
||
|
|
||
|
checkbox.addEventListener('change', function () {
|
||
|
button.disabled = !checkbox.checked;
|
||
|
});
|
||
|
})();
|
||
|
}
|