4.Combining .click() and .hover()



Hi! What am I doing wrong? I wrote this code and when I click on that, that... KRYPTON, it turns red and vanishes, but hover doesn't work! Is it something with paranthesis, or what?
Please, help me! Thanks!

$(document).ready(function() {
   $('div').click(function() {
   $('div').hover(function() {


your .hover method should be outside of .click event.


Thank youuu! :slight_smile:


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