which will then be called upon form submission.
Utils.classes.contains Utils.classes.containsList Utils.classes.add Utils.classes.addList Utils.classes.remove Utils.classes.removeList Utils.classes.toggle Utils.classes.toggleList Utils.classes.item Utils.classes.get
which are passed to eval, which allows them to be called with the selected method. They are provided with type hints to guide input.
eval
For example, calling Utils.classes.contains with input of:
Utils.classes.contains
document.body
and
"test"
would display the result of the call and the current tokens in the specified element's classList object.
classList
obj (Element)
token (String (with quotations))
Results will be displayed below.
Erase Results
The specified Element's class token list:
Element
[]
in Array form.
Array
The result of the called method:
undefined
in String form.
String