Oops, try it again... Problem with "Adding an Event Handler" lesson


#1

I’m sick of truing passing this task.

The script is working, but i have this warning “Oops, try again. Please follow the instructions on the Full Preview page to test your code.”

Also I tried to use on()

$(document).ready(function(){
    $(document).on('click', 'div', function() {
        $(this).fadeOut('fast');
    });
});

but it’s giving the same error

What is the cause of this problem?


#2

When submitting the code, does the preview window go full screen? You should cilck the div to make it go away, then wait before making the preview window small again.


#3

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