toggleAttribute
Description
The toggleAttribute of Element for JS if force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
Returns true if qualifiedName is now present; otherwise false.
Syntax
element.toggleAttribute(qualifiedName [, force])
Parameters
qualifiedName
A qualified name.
force
A boolean.