toggle

changes the state of the two-state control

void toggle();

Example

$$('toggle1').toggle();

Details

If the toggle button was pressed - it becomes unpressed and vice versa.

See also
Back to top