On my website, there is a dynamic element that displays a table when values are present and hides it when there are no values. The values in the table are color-coded to represent different definitions. I wanted to add hover text with a color key for these definitions. Initially, I had planned on having a small colored square next to each definition upon hovering but realized it might be too complicated. So, I attempted to change the actual color of the definition itself to establish the link between the value, color, and definition. However, I have been unable to figure out how to do this effectively. I require the hover effect to trigger on mouseover. For now, this is what I have configured until I can find a way to implement the colors or modify the text color within the hover paragraph:
$myResults.find('.Solutions').bind("mouseover", function(){
$(".myTable").attr('title', 'blue - value1 \n red - value2 \n olive - value3 \n');
});
I experimented with tooltipster but was unsuccessful in getting it to work as intended.