UNPKG

@financial-times/o-forms

Version:

This component provides responsive styling for form fields and inputs. It provides validation and error handling for forms, as well.

10 lines (7 loc) 379 B
import '../../main.js'; document.addEventListener("DOMContentLoaded", function () { document.dispatchEvent(new CustomEvent('o.DOMContentLoaded')); }); const extraContentInput = document.querySelector("input[name='extra']"); // indeterminate states can only be set dynamically, there is no attribute for them. if (extraContentInput) { extraContentInput.indeterminate = true; }