How can I get the class name of the current element that is on mouseover? For example
When a mouse is over from div to a, I want to get the class name of a div element. How can I get it using jQuery?
you can give a try to this:
window.onmouseover=function(e) {
console.log(e.target.className);
};