2
I have the following div which shows the date of a message within a table:
<div class="data" th:text="${aviso.data}"></div>
I need to put a tooltip that shows the date as well when I hover the mouse over that data element, but I can’t do this by html using the title tool because of Thymeleaf. I’m trying to do javascript to give an event onmouseover() but I can’t select the element since the property . getElementByClass will return me an array and not separate values to display individually in the tooltip. Any suggestions?
This answer shows how to make a super well crafted tooltip only with [tag:css]. I think for you it will come out like a glove.
– Diego Rafael Souza
Did you solve it? The answer didn’t help? What was the difficulty?
– Sam
This solution actually only shows a more "tidy" tooltip, because it still makes use of <title> and the problem is that I can’t capture the value of . date inside this tag because of the use of Thymeleaf.
– Cléo Sousa