tiny-classname.js - classname Method for tinyJS

tiny-classname.js adds .C() to the Selection-Methods, which can read and change HTML-Classes.


tiny-classname.js - tiny-classname-min.js.gz


tiny-classname requires only tiny.js. Other scripts are not necessary.


The Method .C() takes up to two Arguments. if the name of a HTML class is given as only argument, the method will return true or false depending on whether the first selected node has this class set. If the first argument is true or false and the second argument is a HTML class name, the class will be set (true) or removed (false).