Reputation: 1834
I have a snippet of code that is able to retrieve the div, but I am also after the class
$(document).ready(function() {
document.onmouseover = function(e) {
var divID = e.target.id;
}
});
This works great, but I also need to get the div class, I was hoping to do something like var divClass = e.target.class
but no dice.
Upvotes: 2
Views: 97