@laserware/dominator
    Preparing search index...

    Function removeAttribute

    • Removes the attribute name from the target.

      Type Parameters

      Parameters

      • target: null | Target

        Element, EventTarget, or CSS selector.

      • name: AttributeName<E>

        Name of the attribute to remove.

      Returns E

      Element representation of the specified target.

      elements!InvalidElementError if the specified target wasn't found.

      HTML (Before)

      <button id="example" aria-disabled="true">
      Example
      </button>

      Code

      let element = findElement("#example")!;

      element = removeAttribute(element, "aria-disabled");

      HTML (After)

      <button id="example">
      Example
      </button>