My code is right but Codecademy tells me otherwise


#1

Hi,

My code works but an error message pops up and stops me at this exercice.
Thank you for your help.


https://www.codecademy.com/courses/web-beginner-en-JwhI1/1/2?curriculum_id=50a3fad8c7a770b5fd0007a1



$(document).ready(function(){

  $('div').hover(
    function(){
        $(this).addClass('active');
    },
    function(){
        $(this).removeClass('active');
    }
  );

});


#2

after clicking on the save and submit button please follow the instructions next to back to editor button.


#3

Thank you very much!!!


#4

I have the same problem but after following the instructions i get "Could not get the property "1" of a link whose value is not defined or is NULL"


#5

can you please create a new topic?

read this it'll help you to make a good topic :slight_smile:


#6

If your code is working correctly when hover over the button it does change the color then hold on the cursor on the buttons for 4-5 seconds and the hover over the next, it takes some time to register the change in color.


#7

it does work for me,thanks.


#9

Same here, I have the exact same code, and I'm sure it's correct. In fact, it works just fine when I submit. I have no clue what's wrong with it.


#10

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