Skip to content
This repository has been archived by the owner on Jan 30, 2021. It is now read-only.
Alper Kürşat edited this page May 24, 2018 · 1 revision

.Class( classes Array|String, remove Boolean )

Adds/Removes classes to/from an Element

Remove

var Elem='.this.is.an.Elem'.Class('an',1); // remove the 'an' class;

O.ready.then(b=>b.append(Elem));
<div class="this is Elem"></div>

Add

Elem.Class(['brand','new']);
<div class="this is Elem brand new"></div>
Clone this wiki locally