Returns an object with handy functions for working on/against the provided selector.
conste = el(`#my-element`); e.text(`hello`); // Set the inner text of the elemenet e.cssDisplay(`block`); // Sets display:block e.cssToggle(`activated`); // Toggles the 'activated' CSS class e.cssClass(true, `activated`); // Turns on the 'activated' CSS class e.el(); // Returns the HTML Element
The selector is only queried when created. Use elRequery to continually
re-query the selector before each operation.
Returns an object with handy functions for working on/against the provided selector.
The selector is only queried when created. Use elRequery to continually re-query the selector before each operation.