JQuery events lesson four...click and hover error


$(document).ready(function() {


This is the code I used to explode Krypton. Krypton turns red when you drag over it and then disappears (explodes) I am given an error that says Krypton is still green....don't understand why


Replace this line with your code.



Please read

In short
the =click= Eventhandler
and the =hover= Eventhandler
should be separated Eventhandler

As you have it now
you have integrated the =hover= Eventhandler
into the =click= Eventhandler !!!


How would I separate them?


I just figured it out...i removed the click function altogether and itworked.




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