How do you remove attributes?

The removeAttribute() method removes an attribute from an element. The difference between this method and the removeAttributeNode() method is that the removeAttributeNode() method removes the specified Attr object, while this method removes the attribute with the specified name.

Read more