I'm trying to change the element , and it just wouldnt work. Can anyone point out what am i doing wrong?
$(document).ready(function(){
$(".navbar").hover(function(){
$(this).css({'background-color': '#ffffff'});
});
});
Hover function in jquery needs two functions, the handleIn function as the first parameter and the handleOut function.
$(document).ready(function(){
$(".navbar").hover(function(){
$(this).css({'background-color': 'yellow'});
},
function(){
$(this).css({'background-color': 'white'});
});
});
:P