javascript function to add and remove class code example
Example: javascript remoev css class
//remove a css class from an element
document.getElementById("myElementID").classList.remove("class_name");
//remove a css class from an element
document.getElementById("myElementID").classList.remove("class_name");