codepens/material-dashboard-lite-master/dist/js/widgets/employer-form/employer-form.js

13 lines
371 B
JavaScript
Raw Normal View History

2023-10-06 23:12:53 +02:00
'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;
});
})();
}