I wan\'t to change the background color of a div dynamicly using the following HTML, CSS and javascript.
HTML:
-
2020-12-10 01:24
On a side note this is more efficient:
$(".menuItem").hover(function(){
this.style.backgroundColor = "#F00";
}, function() {
this.style.backgroundColor = "#000";
});