4 Combining .click() and .hover()


in this session I added like this and it worked.


but I'm wondering why I can't use .css (" background-color:red"); insted of .addClass?

Please give me advice!
Thank you !


The style sheet already has a defined class, .red that sets the background when the class attribute is added to the element. We can add and remove the class dynamically and the page updates each time.


Make sense! I didn't notice it has already defined.
Thank you !!


This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.