UI Deploy

Curated, Short, Web UI Dev we Love.

Removing All HTML Element Attributes at Once

Sometimes you are required to remove all attributes from HTML element. There is no native JavaScript method to achieve this. However, we can definitely do that with a single loop, iterating over HTML element attributes removing each on the way.

view source

Advertisement