diff --git a/demos/checkbox.html b/demos/checkbox.html index 90a2512bd1b..90c5bc9ab2e 100644 --- a/demos/checkbox.html +++ b/demos/checkbox.html @@ -89,7 +89,7 @@

With Javascript

With Javascript
- +
@@ -144,15 +144,14 @@

Dark Theme

var MDCFormField = global.mdc.formField.MDCFormField; var checkbox = document.getElementById('mdc-js-checkbox'); - var checkboxInstance = new MDCCheckbox(document.getElementById('mdc-js-checkbox')); + var checkboxInstance = new MDCCheckbox(checkbox); var formField = checkbox.parentElement; var formFieldInstance = new MDCFormField(formField); - formFieldInstance.input = checkboxInstance; document.getElementById('make-ind').addEventListener('click', function() { - checkbox.indeterminate = true; + checkboxInstance.indeterminate = true; }); })(this);