Lesson 6 Not letting me pass (Solved)


#1

Hi,

I have written the code below and it won't let me pass but I don't know why. I think I am doing it correctly.

$(document).ready(function(){
});
$(document).ready();

It looks correct and I followed all the instructions that were given. It just keeps giving me this error.

Oops, try again. Did you put document inside $() ?

Does anyone know what I am doing wrong? Thank You.


#2

What lesson are you on. Because that code just looks a little wonky-wompus


#3

I am on Lesson 6 and Unit 1 : Introduction to jQuery.


#4

Really you should only ever have one "$(document).ready();" the second one seems unnecessary.


#5

Thanks. The other one was put in there when the lesson started and I just assumed to leave it there. Thanks a lot.