Based on an answer from the stack overflow post at: Change background color on mouseover and remove it after mouseout
the below code should set the css to display: block; on hover and display: none; when they hover off.
Can anyone see anything wrong with the below code? (No console errors are occuring) I'm basically trying to make myself a simple tool tip.
$(function () {
$(document).on('hover', '.inter [class]', function () {
$('._22t').css({
'display': 'block'
});
}, function () {
$('._22t').css({
'display': 'none'
});
});
});