ixfx
    Preparing search index...

    Function el

    • Returns an object with handy functions for working on/against the provided selector.

      const e = 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.

      Parameters

      Returns WrappedElement