There was an error while loading. Please reload this page.
Add one or more modifiers to each element in the set of matched elements
.addModifier(modifier, config);
.add()
.addModifiers()
modifier
(String|Array)
[config]
Object
<div class="button" id="alpha">Button</div>
sQuery('#alpha').addModifier('active');
<div class="button-active" id="alpha">Button</div>
Note the use of .addModifiers() alias
sQuery('#alpha').addModifiers(['disabled', 'error']);
<div class="button-disabled-error" id="alpha">Button</div>