How can I keep the original CSS class when the mouse moves away?
function highlight( x, y) {
var sel=document.getElementById(y);
sel.style.borderBottom= "2px solid "+x;
sel.style.opacity="1";
sel.style.transition="all ease-in .1s"
}
Even after the mouse moves away, I want the old CSS class to remain without the transition effect.