6. Hover


#1

this is my code:
$(document).ready(function() {
$('div').hover(
function(){
$(this).addClass('active');
},
function(){
$(this).removeClass('active');
}
);

});

and there is an error:
Oops, try again. Unable to get property '1' of undefined or null reference .
HELP!!


#2

@amy37901,

++++ reset of session *****************
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser

and

Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

Addendum
General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).
CTRL 0 to reset browser zoom


#3

Dear leonhard_wettengmx_n ,
Thank you for answering me, I am very Greatful


#4

I have exactly the same error and nothing doesn't work :frowning: looks like a big bug


#5

I fixed same error.
1. CTRL 0 to** reset browser zoom**
2. CTRL f5 ( if on Windows or Linux) or CMD r ( if on a MAC).


#6

have to wait until the effect of hover fully "darken" the button, if you move mose quickly it doesnt count


#11

Also, make sure to only highlight one menu item and then move the mouse away. Don't hover over a second or third menu item or else you will still get the null reference error.


#13