qc-dom_utils
A set of utilities for working with the DOM. Utilities found in other major libraries such as jQuery will not be found here unless there is a good reason.
The structure of this package allows importing only the utilities used. See the Example Usage section below. If you choose, you can import the entire library or subsets of the library. All of which depends on how you script the import statements.
Installation
npm install --save qc-dom_utils
or
yarn add qc-dom_utils
Example Usage
// Import entire library let elem = DomUtilslet formElem = DomUtilsform
// Import just the `get` utility let elem =
// Import just the form subset of utilities let formElem = FormUtilslet firstInvalidElem = FormUtils
// Import just the `get` utility from the `form` namespace let formElem =
// Import just the `focusFirstInvalidInputControl` utility from the `form` namespace let firstInvalidElem =
Common JS
const DomUtils = default...
const get = default...
const FormUtils = default...
const get = default...
const focusFirstInvalid = default...