Did anyone help. I have these two:
I want the text to change to light green when it freezes, white when it does not freeze, and red when pressed.
$(".music").hover(
function() {
$(this).css('color','lightgreen');
},
function() {
$(this).css('color', 'white');
}
);
$(".music").click(function () {
$('#result').load('album_list_index.php');
$(this).css({ 'color': 'red', 'font-size': '100%' });
});
Thank you in advance
AC
NOTE: OK, I am sorry that I did not understand myself.
I need the div to be white, if not a mousedover I need it to be gree when the mouse And I need it to be red when pressed and stay red until another button is pressed.
Thanks to everyone for introducing the expecialy add class and removing the class cases, it was a good lesson that I will use when I learn the technique a bit more.
source
share