javascript change class of item

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

Also in JavaScript: