can.addClass
Add a class to elements.
can.addClass(nodeList, className)
Parameters
-
nodeList
{NodeList}
The list of HTML elements to add the class to.
-
className
{String}
The class to add.
Add a class to elements.
{NodeList}
The list of HTML elements to add the class to.
{String}
The class to add.
can.addClass( nodelist, className )
adds the specified class(es) to nodelist's HTMLElements. It does NOT replace any existing class(es) already defined.You can also pass multiple class(es) and it will add them to the existing set also.
This works similarly to jQuery.fn.addClass.