Skip to content

.modifier()

esr360 edited this page Apr 18, 2019 · 8 revisions

Various Modifier operations

.modifier(modifier, operator)

.modifier(modifier, operator, config);
Param Type Info
modifier String The modifier of interest
[operator] (is'|'set'|'unset') The operation to apply to matched elements
[config] Object The configuration to use when calling the method (learn more)
  • If operator is not passed, it will assume to be is

Operator - 'is'

Determine if each element in the set of matched elements has the specified modifier

Operator - 'set'

Add the specified modifier to each element in the set of matched elements

Operator - 'unset'

Remove the specified modifier from each element in the set of matched elements

Clone this wiki locally