javascript set css calss

CSS
document.getElementById("myElementID").classList.add('myClassName');
document.getElementById("myElementID").classList.remove('myClassName');
Source

Also in CSS: