I have table elements with a "td1" class definition. My CSS is written as follows
However, if I change the border style using JavaScript like this.
Everything works great, but the hover no longer fires on that previously clicked cell.
Basically what I'm trying to do is highlight a table cell border to red when hovering. When a click occurs, I use javascript to change the border to blue. When a click occurs on another cell, I use javascript to revert the last clicked cell to it's default border color. All of that works great. But when I hover over the (already once clicked) cell again, hover doesn't work anymore.
Any ideas?
Code:
.td1:hover {
border:red solid 1px;
}
Code:
elmtRef.style.border = "blue solid 1px;"
Basically what I'm trying to do is highlight a table cell border to red when hovering. When a click occurs, I use javascript to change the border to blue. When a click occurs on another cell, I use javascript to revert the last clicked cell to it's default border color. All of that works great. But when I hover over the (already once clicked) cell again, hover doesn't work anymore.
Any ideas?