Skip to content
Advertisement

jQuery events function for ‘html’ but not CSS

JavaScript

Nothing happens. No errors in the console are shown. No matter what event – click, hover, etc – they only work if I apply them to the ‘html’ tag. First part of the code works perfectly, I mean the .css.

What kind of sorcery is this?

Advertisement

Answer

Grrr… I figured it out. The whole code needs to be included within this:

JavaScript

Can anyone provide an explanation on this? Some images were not found, can that influence this?

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement