0
jquery problems
so I'm having problems with my script in jquery here it is $('#ac').mouseenter(function() {$(this).css('background-color','orange')}); $('#ac').mouseleave(function() {$(this).css('background-color','red')}); $('#ac').click(function(){ $(this).css('background-color','yellow')}); does anyone know what I did wrong
2 Respuestas
+ 1
$('#ac').hover(function () {}
+ 1
The first line should be
$('#ac').on("mouseover", function() {
$(this).css({backgroundColor: 'orange'})
});
Write CSS properties in camelCase.