We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Toggle one or more modifiers to each element in the set of matched elements (add the modifier if not already present/remove the modifier if present)
.toggleModifier(modifier, config);
.toggle()
.toggleModifiers()
modifier
(String|Array)
[config]
Object
<div class="button" id="alpha">Button</div>
sQuery('#alpha').toggleModifier('active');
<div class="button-active" id="alpha">Button</div>
Note the use of .toggleModifiers() alias
sQuery('#alpha').toggleModifier(['disabled', 'error']);
<div class="button-disabled-error" id="alpha">Button</div>