addClassName

addClassName(element, className) -> HTMLElement 

Adds a CSS class to element.

Examples


<div id="mutsu" class="apple fruit"></div>

$('mutsu').addClassName('food')

$('mutsu').className
// -> 'apple fruit food'
$('mutsu').classNames()
// -> ['apple', 'fruit', 'food']