jQuery Functions and Selectors 1/13: It works, but it won't let me continue

$(document).ready(function() {
    $("div").mouseenter(function() {

When I run this, it works perfectly fine, and I even get the notification for the badge. But instead of letting me continue, I get the error:
Oops, try again. Did you call .hide() on your jQuery object?
What's wrong?


After you press submit a full size window pops up you need to hover over your div and test if it work then only will it let you pass


It did that for the other assignments but now it doesn't pop up


You need to replace "div" make it this



Oh ya thanks I should be doing that. I've been just recalling the div selector.


I still get the same error :confused:


reset the code and past in your code and try again


that didn't work either. :slightly_smiling: this is annoying


paste in your code again pls

$(document).ready(function() {
    $("div").mouseenter(function() {


Under: jQuery Functions and Selectors which lesson no ?


The first one. I've moved past it bc I know I did it right, it's just weird there's an error


if there is any error it won't let you pass

The first lesson this one you don't need to add mouse enter.. Its just simple hide

Instructions : Practice makes perfect! Set up your jQuery code in the script.js tab with $(document).ready() and pass it a function that will immediately hide the orange div on the Result tab. (You can use the jQuery .hide() effect to do this.)

$(document).ready(function() {


I just opened the list of assignments and clicked on the next one. Oh wow thanks that worked. I didn't even notice that. Thanks for your help :grinning:


No problem, you're welcome !
Happy Learning :slightly_smiling:
Happy coding !

What inspired you to learn programming ?
Join the discussion


I need help idk what's wrong.


line 3: li has to be in quotes
var $target = $("li");


line 3:
var $target=$('ol li:last-child');