tooltip for validation

using the validation feature,the line with invalid data will be highlighted and there will be a red triangle。So how can i show some validation info when the mouse enter the red triangle (tooltip) . Since the red triangle is made by css,not an element.

Hello @Dudadi,

So how can i show some validation info when the mouse enter the red triangle (tooltip) . Since the red triangle is made by css,not an element.

This is exactly the reason why it isn’t really possible, as there is no DOM representation of a pseudo-element, and it only exists within CSS. For the tooltip to display in the correct place you either need a specific HTML node, or a set of coordinates. Using coordinates is unrealistic in this case, and there is no way to get the node, so your only alternative is to display the tooltip somewhere else.

actually,I try to change the pseudo-element to a html node, any suggestion will be helpful.