Go back to the article
classList API
API not supported
Live sample element
<span id="play-element" class="description"></span>
Play area
Methods and Properties:
add()
contains()
item()
length
remove()
toString()
toggle()
Parameters (use spaces for multiple parameters):
Execute
Log
Clear log
Demo created by
Aurelio De Rosa
(
@AurelioDeRosa
).
This demo is part of the
HTML5 API demos repository
.