Skip to main content

ElementSetAttribute

Callable

  • ElementSetAttribute(ID: string, Name: string, Value: string): void

  • Sets an attribute to a specified value on a specified element


    Parameters

    • ID: string

      The id of the element to create/set the data attribute of.

    • Name: string

      Name of the attribute.

    • Value: string

      Value to give to the attribute.

    Returns void

    • Nothing