toggleAttribute method

bool toggleAttribute(
  1. String qualifiedName, [
  2. bool force
])

The toggleAttribute() method of the Element interface toggles a Boolean attribute (removing it if it is present and adding it if it is not present) on the given element.

Implementation

external bool toggleAttribute(
  String qualifiedName, [
  bool force,
]);