Sign in

.removeAttribute()

Remove an attribute value on the selected elements.

Syntax

neon.removeAttribute(string attr)

attr

The name of the attribute to remove.

Requirements

This method should be executed on a selection of elements. Please see the .select() method.

Return value

This method is chainable. It returns a copy of the Neon object on which it was called.

Description

This method allows you to remove an attribute value on one or more elements at once.

It is currently equivalent to calling .setAttribute() with an empty string ("") as the second parameter.

Many browser and DOM HTML inconsistencies are worked around for your convenience. Please see the .setAttribute() method for further information.