You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clarify that these two methods manipulate the property and not the attribute. In HTML DOM docs the browser echoes the className property value back into the class attribute. Two implications:
The browser may not remove the class attribute when the last class name is removed, it may only be set to an empty string.
The addClass/removeClass methods only work for documents with HTML DOM semantics (e.g., not pure XML documents).