Remove Attribute
element.removeAttribute(name)
Remove the specified HTML attribute from the DOMElement. Use this method instead of the ‘Custom Attribute’ methods.
Syntax
Parameters
- name :
string
- The name of the attribute to remove
Returns
Promise<null
>
A promise that resolves to null