removeAttribute

The removeAttribute JS Element removes element’s first attribute whose qualified name is qualifiedName.

Syntax

element.removeAttribute(qualifiedName)

Parameters

qualifiedName

A qualified name.

Examples

attachShadow

classList

className

closest

getAttribute

getAttributeNames

getAttributeNS

hasAttribute

hasAttributeNS

hasAttributes

id

innerHTML

insertAdjacentHTML

localName

matches

namespaceURI

outerHTML

prefix

removeAttributeNS

setAttribute

setAttributeNS

shadowRoot

slot

tagName

toggleAttribute

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu