The following code adding a red shadow on every DOM element on hover, how can i mark only that element what is under the cursor?
$( "html *" ).hover(function() {
$( this ).css('box-shadow','inset 0 0 3px red');
}, function() {
$( this ).css('box-shadow','none');
}
);
});
Here is my jsfiddle: https://jsfiddle.net/eapo/7Lyt9qeb/2/